cpjk / canary

:hatching_chick: Elixir authorization and resource-loading library for Plug applications.
MIT License
474 stars 51 forks source link

Allow configuration of user object #12

Closed mgwidmann closed 9 years ago

mgwidmann commented 9 years ago

Assuming current_user will work for a little bit, but often apps have stuff like current_user and current_admin_user, ect. It would be nice to be able to configure this globally in config.exs as well as override it per plug like plug :load_resource, model: User, user: :current_admin_user.

If I have time I'd love to help out on this, for whoever gets to it first...

cpjk commented 9 years ago

Good point!

I'll look into this as soon as possible.