# Login Generator with Extensible authorisation

**URL:** <https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926>\
**Category:** Rails\
**Created:** [April 14, 2006, 12:49pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926 "2006-04-14T12:49:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 12:49pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/1 "2006-04-14T12:49:40Z")

</div>

I want my web app to have a signup/login generator but have 2 tiers of  
users - normal and premium. There seems to be lots of login generator  
and engines with scattered tutorials about extensible authorisation and  
Im lost as which is the ‘best’ or most ‘easy to use’ solution. Anyone  
had success in this area?

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/2 "2006-04-14T15:17:50Z")

</div>

“Best” is pretty subjective, Rob. What sort of things are important to  
you?

- james

On 4/14/06, Rob B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

- J \*  
~

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/3 "2006-04-14T15:20:35Z")

</div>

The two that seem to be under most active development and use right now  
are the LoginEngine/UserEngine combo from [rails-engines.org](http://rails-engines.org), and  
ActiveRBAC, which is also an engine. I use the former. It’s a bit rough  
around the edges and the administration UI is pretty Spartan, but the  
lead developer seems to stay on top of things when there are problems,  
and it works as advertised. ActiveRBAC seems to be well-liked by people  
on this list lately, too, and has nice documentation.

However, because they override built-in Rails behaviors, security  
plugins are sensitive to changes in the Rails API. If the experience of  
going from Rails 1.0 to 1.1 with the Engines plugin is any indication,  
it’s going to be especially important down the road to make sure the  
engines you’re using – and the Engines plugin itself – have made the  
transition to a given new version of Rails before you migrate an app to  
it.

Rob B. wrote:

> I want my web app to have a signup/login generator but have 2 tiers of  
> users - normal and premium. There seems to be lots of login generator  
> and engines with scattered tutorials about extensible authorisation and  
> Im lost as which is the ‘best’ or most ‘easy to use’ solution. Anyone  
> had success in this area?

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/4 "2006-04-14T15:37:55Z")

</div>

James A. wrote:

> “Best” is pretty subjective, Rob. What sort of things are important to  
> you?
> 
> - james
> 
> On 4/14/06, Rob B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > removed\_email\_address@domain.invalid  
> > [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> –
> 
> - J \*  
> ~

I would like users to be able to sign up with email confirmation and  
password retrieval. And have 2 user groups - normal members and paid  
members, each having their own permissions.

Ive been trying to get the login engine to work today but its proving  
difficult, Im getting:  
SyntaxError in #  
… at the moment which makes me think ive gone very wrong some where!

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 3:33pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/5 "2006-04-14T15:33:20Z")

</div>

Steve K. wrote:

> However, because they override built-in Rails behaviors, security  
> plugins are sensitive to changes in the Rails API. If the experience of  
> going from Rails 1.0 to 1.1 with the Engines plugin is any indication,  
> it’s going to be especially important down the road to make sure the  
> engines you’re using – and the Engines plugin itself – have made the  
> transition to a given new version of Rails before you migrate an app to  
> it.

Due in part to the issue Steve mentions above, we recently abandoned the  
user/login engine combination as well as the generators and moved to  
writing our own implementation (based on the Rails Recipes book from  
PragProg). The other reason was that for our particular needs, we would  
have to modify / override a good bit of the engine functionality. It was  
easier to just code it from scratch (which took all of 3 hours to get  
basic authentication/authorization in place).

As somewhat of an aside, the interaction of plugins both with Rails and  
with each other is going to continue to be an issue unless there is some  
effort to freeze the portions of rails in someway that these plugins  
interact with. This could take the form of guidelines, like “Override  
this at your peril”, or an api of some sort that is guaranteed to be  
backward compatible. Virtually every plugin we used was completely  
broken, at least initally, by upgrading Rails to 1.1, and there is no  
central place to go to see which plugins are compatible, etc. This cost  
us almost a week of work trying to iron everything out.

Keith

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/6 "2006-04-14T16:23:18Z")

</div>

I agree it would be a great idea if RoR got a standardized  
Plguin-Friendly API that could be set in stone in order to offer  
developers a roadmap for forward-compatibility. And for good measure,  
maybe the Engines plugin should be cleaned up and merged into Rails.

Keith L. wrote:

> Steve K. wrote:
> 
> > However, because they override built-in Rails behaviors, security  
> > plugins are sensitive to changes in the Rails API. If the experience of  
> > going from Rails 1.0 to 1.1 with the Engines plugin is any indication  
> > …
> 
> Due in part to the issue Steve mentions above, we recently abandoned the  
> user/login engine combination as well as the generators and moved to  
> writing our own implementation (based on the Rails Recipes book from  
> PragProg).

:: snip ::

> As somewhat of an aside, the interaction of plugins both with Rails and  
> with each other is going to continue to be an issue unless there is some  
> effort to freeze the portions of rails in someway that these plugins  
> interact with. This could take the form of guidelines, like “Override  
> this at your peril”, or an api of some sort that is guaranteed to be  
> backward compatible. Virtually every plugin we used was completely  
> broken, at least initally, by upgrading Rails to 1.1, and there is no  
> central place to go to see which plugins are compatible, etc. This cost  
> us almost a week of work trying to iron everything out.
> 
> Keith

---

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [April 14, 2006, 3:42pm UTC](https://www.ruby-forum.com/t/login-generator-with-extensible-authorisation/93926/7 "2006-04-14T15:42:00Z")

</div>

Steve K. wrote:

> Due in part to the issue Steve mentions above, we recently abandoned the  
> user/login engine combination as well as the generators and moved to  
> writing our own implementation (based on the Rails Recipes book from  
> PragProg). The other reason was that for our particular needs, we would  
> have to modify / override a good bit of the engine functionality. It was  
> easier to just code it from scratch (which took all of 3 hours to get  
> basic authentication/authorization in place).
> 
> As somewhat of an aside, the interaction of plugins both with Rails and  
> with each other is going to continue to be an issue unless there is some  
> effort to freeze the portions of rails in someway that these plugins  
> interact with. This could take the form of guidelines, like “Override  
> this at your peril”, or an api of some sort that is guaranteed to be  
> backward compatible. Virtually every plugin we used was completely  
> broken, at least initally, by upgrading Rails to 1.1, and there is no  
> central place to go to see which plugins are compatible, etc. This cost  
> us almost a week of work trying to iron everything out.
> 
> Keith

Ive looked into getting rails receipes but wasn’t sure it covered what I  
needed. guess i was wrong
