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, <<a href=3D"mailto:[email protected]">[email protected]<= /a>> 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> > On 12 Jan 2020, at 10:15, Surya Poojary <<a href=3D"mailto:suryapjr= @gmail.com" target=3D"_blank" rel=3D"noreferrer">[email protected]</a>>= wrote:<br> > <br> > Dear Rubyists,<br> > <br> > I'm a web developer newbie , learning sinatra . I'm planning t= o build my own notes web app. Since it'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't = show . <br> > <br> > How do I achieve this with Sinatra?<br> > <br> > Regards,<br> > Surya.<br> > <br> > <br> > Unsubscribe: <mailto:<a href=3D"mailto:ruby-talk-request@ruby-lang.= org" target=3D"_blank" rel=3D"noreferrer">[email protected]</= a>?subject=3Dunsubscribe><br> > <<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>><br> <br> <br> Unsubscribe: <mailto:<a href=3D"mailto:[email protected]" = target=3D"_blank" rel=3D"noreferrer">[email protected]</a>?su= bject=3Dunsubscribe><br> <<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>><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==--