riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Add redirect_path to config #1

Closed mutablestate closed 9 years ago

mutablestate commented 9 years ago

@riverrun To use openmaize in an existing project I needed to override the add_token/4 redirect as its currently wired to use the login_dir configuration setting.

What do you think about adding a config parameter such as redirect_path? The caveat is that any additional roles will probably need custom redirects too.

riverrun commented 9 years ago

Will do.

riverrun commented 9 years ago

Added redirect_pages map to config. See openmaize-example config/dev.exs file for an example. One more change: you need to change Openmaize.Authenticate in the web/router.ex file to Openmaize.