Re: Authentication in sinatra

Surya Poojary <[email protected]> Sun, 12 Jan 2020 16:13:06 +0530
Newsgroups gmane.comp.lang.ruby.general
Message-ID <CAANzoRHa--yRN0+jgLobgpsfSz=jqYN-MGzGUWCLoGVXj+Kr_A@mail.gmail.com>
--===============1056339362==
Content-Type: multipart/alternative; boundary="000000000000df225b059bef06b8"

--000000000000df225b059bef06b8
Content-Type: text/plain; charset="UTF-8"

Will it ask for authentication everytime someone visits the URL ? or is it
if I enter correct combination once,it will not ask again .?


Regards,

Surya.

On Sun, 12 Jan 2020, 16:03 Ketan Patel, <[email protected]> wrote:

> The easiest thing to start with is HTTP basic auth, have a look here:
> http://sinatrarb.com/faq.html#auth.
>
> Ketan Patel
>
>
> > On 12 Jan 2020, at 10:15, Surya Poojary <[email protected]> wrote:
> >
> > Dear Rubyists,
> >
> > I'm a web developer newbie , learning sinatra . I'm planning to build my
> own notes web app. Since it's for my personal use , I want the home page to
> be a classic login page where I can enter my username and password and then
> it should show me all my notes otherwise it shouldn't show .
> >
> > How do I achieve this with Sinatra?
> >
> > Regards,
> > Surya.
> >
> >
> > Unsubscribe: <mailto:[email protected]
> ?subject=unsubscribe>
> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>
>
> Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>

--000000000000df225b059bef06b8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Will it ask for authentication everytime someone visits t=
he URL ? or is it if I enter correct combination once,it will not ask again=
 .?<div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=3D"auto=
">Regards,</div><div dir=3D"auto"><br></div><div dir=3D"auto">Surya.</div><=
/div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Sun, 12 Jan 2020, 1=
6:03 Ketan Patel, &lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The easiest thing to=
 start with is HTTP basic auth, have a look here: <a href=3D"http://sinatra=
rb.com/faq.html#auth" rel=3D"noreferrer noreferrer" target=3D"_blank">http:=
//sinatrarb.com/faq.html#auth</a>.<br>
<br>
Ketan Patel<br>
<br>
<br>
&gt; On 12 Jan 2020, at 10:15, Surya Poojary &lt;<a href=3D"mailto:suryapjr=
@gmail.com" target=3D"_blank" rel=3D"noreferrer">[email protected]</a>&gt;=
 wrote:<br>
&gt; <br>
&gt; Dear Rubyists,<br>
&gt; <br>
&gt; I&#39;m a web developer newbie , learning sinatra . I&#39;m planning t=
o build my own notes web app. Since it&#39;s for my personal use , I want t=
he home page to be a classic login page where I can enter my username and p=
assword and then it should show me all my notes otherwise it shouldn&#39;t =
show . <br>
&gt; <br>
&gt; How do I achieve this with Sinatra?<br>
&gt; <br>
&gt; Regards,<br>
&gt; Surya.<br>
&gt; <br>
&gt; <br>
&gt; Unsubscribe: &lt;mailto:<a href=3D"mailto:ruby-talk-request@ruby-lang.=
org" target=3D"_blank" rel=3D"noreferrer">[email protected]</=
a>?subject=3Dunsubscribe&gt;<br>
&gt; &lt;<a href=3D"http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby=
-talk" rel=3D"noreferrer noreferrer" target=3D"_blank">http://lists.ruby-la=
ng.org/cgi-bin/mailman/options/ruby-talk</a>&gt;<br>
<br>
<br>
Unsubscribe: &lt;mailto:<a href=3D"mailto:[email protected]" =
target=3D"_blank" rel=3D"noreferrer">[email protected]</a>?su=
bject=3Dunsubscribe&gt;<br>
&lt;<a href=3D"http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk=
" rel=3D"noreferrer noreferrer" target=3D"_blank">http://lists.ruby-lang.or=
g/cgi-bin/mailman/options/ruby-talk</a>&gt;<br>
</blockquote></div>

--000000000000df225b059bef06b8--

--===============1056339362==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--===============1056339362==--