What is your favourite authentication gem and why? Right now I have 4 to choose from (Cancan, Clearance, Rails Cast<http://railscasts.com/episodes/250-authentication-from-scratch>) and I don''t know which one to pick. I cannot use Device because I''m a beginner at Rails. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d9253b08-eab7-4b9f-963c-9fae647f0f70%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2013-Oct-21 16:40 UTC
Re: What is your favourite authentication gem and why?
CanCan is an Authorization solution, not an Authentication solution. Devise is Authentication only, and relies on CanCan or another Authorization framework to do that part of the job. Apples and Oranges, I''m afraid. Walter On Oct 21, 2013, at 12:34 PM, desbest wrote:> What is your favourite authentication gem and why? > Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I don''t know which one to pick. > I cannot use Device because I''m a beginner at Rails. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d9253b08-eab7-4b9f-963c-9fae647f0f70%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/37308DAC-EF52-4903-8F36-07409FEF55F4%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
What''s the difference between an Authentication and Authorisation solution? From what I understand, I can use a column in the users table called *level*, and have number *5 *be an admin like if user.level == 5 On 21 October 2013 17:40, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> CanCan is an Authorization solution, not an Authentication solution. > Devise is Authentication only, and relies on CanCan or another > Authorization framework to do that part of the job. Apples and Oranges, I''m > afraid. > > Walter > > On Oct 21, 2013, at 12:34 PM, desbest wrote: > > > What is your favourite authentication gem and why? > > Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I > don''t know which one to pick. > > I cannot use Device because I''m a beginner at Rails. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/d9253b08-eab7-4b9f-963c-9fae647f0f70%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/-P_ilf90xvo/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/37308DAC-EF52-4903-8F36-07409FEF55F4%40wdstudio.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAEZ7cNP9Yx2rKMNqZ-iGqAuCnED1n4-oNdHmdo%3DM9igMs8_%3Daw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2013-Oct-21 16:46 UTC
Re: What is your favourite authentication gem and why?
Authentication is "are you who you say you are". It establishes a session with the browser, and uses a login to check credentials before allowing that session to see anything you''ve protected from public view. Authorization uses a method like you describe, which allows certain _authenticated_ people to do certain things. You can''t have authorization without authentication -- they build on one another. But they solve different problems than one another. Walter On Oct 21, 2013, at 12:40 PM, Walter Lee Davis wrote:> CanCan is an Authorization solution, not an Authentication solution. Devise is Authentication only, and relies on CanCan or another Authorization framework to do that part of the job. Apples and Oranges, I''m afraid. > > Walter > > On Oct 21, 2013, at 12:34 PM, desbest wrote: > >> What is your favourite authentication gem and why? >> Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I don''t know which one to pick. >> I cannot use Device because I''m a beginner at Rails. >> >> -- >> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d9253b08-eab7-4b9f-963c-9fae647f0f70%40googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/37308DAC-EF52-4903-8F36-07409FEF55F4%40wdstudio.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7B996034-CFE1-4BE1-8C84-859FCCE5665E%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.
If you are trying to learn Rails and creating your first app with authentication, I think it''s a good idea to build it from scratch so you have a better understanding about what is going on under the hood. After you have mastered it and/or just want to build your app quickly with standard authentication features, use Devise to save some time. Lei On Mon, Oct 21, 2013 at 11:34 AM, desbest <afaninthehouse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What is your favourite authentication gem and why? > Right now I have 4 to choose from (Cancan, Clearance, Rails Cast<http://railscasts.com/episodes/250-authentication-from-scratch>) > and I don''t know which one to pick. > I cannot use Device because I''m a beginner at Rails. > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d9253b08-eab7-4b9f-963c-9fae647f0f70%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1382374677734.dbe488cf%40Nodemailer. For more options, visit https://groups.google.com/groups/opt_out.
I''ve decided to use the authentication system from the Ramaze ruby framework, as it''s the most simplest. I''ll let you know how it goes. On 21 October 2013 17:57, Lei Zhao <leizhao4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If you are trying to learn Rails and creating your first app with > authentication, I think it''s a good idea to build it from scratch so you > have a better understanding about what is going on under the hood. > > After you have mastered it and/or just want to build your app quickly with > standard authentication features, use Devise to save some time. > Lei > > > On Mon, Oct 21, 2013 at 11:34 AM, desbest <afaninthehouse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> What is your favourite authentication gem and why? >> Right now I have 4 to choose from (Cancan, Clearance, Rails Cast<http://railscasts.com/episodes/250-authentication-from-scratch>) >> and I don''t know which one to pick. >> I cannot use Device because I''m a beginner at Rails. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/d9253b08-eab7-4b9f-963c-9fae647f0f70%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/-P_ilf90xvo/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/1382374677734.dbe488cf%40Nodemailer > . > > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAEZ7cNORL%3D5xaKS4nGAzg0X8q9tDSUwAOYzh%3Dn5TJ4_ABRhp5w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 21 October 2013 17:34, desbest <afaninthehouse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What is your favourite authentication gem and why? > Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I > don''t know which one to pick. > I cannot use Device because I''m a beginner at Rails.If you are so much a beginner that Devise is too complex to understand then first you need to work right through a good tutorial such as railstutorial.org, which is free to use online. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv%2Bcn80cNDUrOsjL-hTT9-qxu6qFU%2BpkynrPj7rgkfqrw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
I''m currently using Rails Tutorial, but there''s a mistake in the book (which I emailed Michael to be corrected) so now I''m stuck and cannot go any further. On 21 October 2013 18:11, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 21 October 2013 17:34, desbest <afaninthehouse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > What is your favourite authentication gem and why? > > Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I > > don''t know which one to pick. > > I cannot use Device because I''m a beginner at Rails. > > If you are so much a beginner that Devise is too complex to understand > then first you need to work right through a good tutorial such as > railstutorial.org, which is free to use online. > > Colin > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/-P_ilf90xvo/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv%2Bcn80cNDUrOsjL-hTT9-qxu6qFU%2BpkynrPj7rgkfqrw%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAEZ7cNMhpzvEX9p9Rt1jnsVxs0Quor0WkMpn_x-yvA0E5-5KFA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 21 October 2013 18:13, tynamite <afaninthehouse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m currently using Rails Tutorial, but there''s a mistake in the book (which > I emailed Michael to be corrected) so now I''m stuck and cannot go any > further.Explain the problem here, probably someone will be able to help. Start a new thread though so it does not appear under this subject line. Colin> > > On 21 October 2013 18:11, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 21 October 2013 17:34, desbest <afaninthehouse-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > What is your favourite authentication gem and why? >> > Right now I have 4 to choose from (Cancan, Clearance, Rails Cast) and I >> > don''t know which one to pick. >> > I cannot use Device because I''m a beginner at Rails. >> >> If you are so much a beginner that Devise is too complex to understand >> then first you need to work right through a good tutorial such as >> railstutorial.org, which is free to use online. >> >> Colin >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ruby on Rails: Talk" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/rubyonrails-talk/-P_ilf90xvo/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv%2Bcn80cNDUrOsjL-hTT9-qxu6qFU%2BpkynrPj7rgkfqrw%40mail.gmail.com. >> >> For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAEZ7cNMhpzvEX9p9Rt1jnsVxs0Quor0WkMpn_x-yvA0E5-5KFA%40mail.gmail.com. > > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs_ipyy73JkrdRY%3D9QwSW1FQyiF7%3D6C8rO01F3TRkVszg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.