-
Notifications
You must be signed in to change notification settings - Fork 38
Options
Michał Zając edited this page May 3, 2015
·
2 revisions
Below is a list of possible configuration options and their default values for padrino-warden:
Option | Default value | Notes |
---|---|---|
:sessions | true | Disabling this will render padrino-warden useless but I trust you know what you are doing |
:auth_success_path | '/' | The path to which the user will be redirected upon authentication success |
:auth_failure_path | '/' | The path to which the user will be redirected upon authentication failure |
:auth_use_referrer | false | Set this to true to redirect a user back to an action protected by login /authenticate after successful login |
:auth_success_message | "You have logged in successfully." | Message to display after authentication success |
:auth_error_message | "You have provided invalid credentials." | Message to display after authentication error |
:deauth_success_message | "You have logged out successfully." | Message to display after deauthentication success |
:auth_login_template | 'sessions/login' | Which template to use |
:auth_login_path | 'sessions/login' | Path under which the authentication action will be available |
:auth_unauthenticated_path | '/unauthenticated' | Path under which the unauthenticated action will be available |
:auth_logout_path | 'sessions/logout' | Path under which the logout action will be available |
:auth_login_layout | true | Whether or not to use the layout in the login view |
:auth_use_oauth | false | Whether or not to use OAuth |
:default_strategies | [:password] | Array of default strategies for padrino-warden to use |
:warden_failure_app | app | Application to run upon authentication failure |
:warden_default_scope | :session | Default scope for padrino-warden |