sutajio/auth — Issue #7: Configuration options
Author: fbernier
Created: 2012-02-13 17:50:16+00:00
State: open

While implementing the auth server into my app, I encountered a few places where it would have been nice to have some more extensibility. For example, I have a custom view for the authorization page. From what I understand, it's not possible to use it unless I change line 12 here: https://github.com/Humagine/auth/blob/master/lib/auth/server.rb

If I do I also can't name it differently, or use a different templating engine, since it's hardcoded on line 111 here: https://github.com/Humagine/auth/blob/master/lib/auth/server.rb

Those are the first popping out of my head, but I guess there will be other cases.

If you agree, I'd like to implement those configuration options instead of having my own fork. I see different options, such as having something like it's already possible for the sentry:

```ruby
Auth.sentry = MyModule::MyCustomSentryClass
```

or maybe having a yaml file to store such configuration.

What are your thoughts on this?