diff options
| author | Clément Michaud <clement.michaud34@gmail.com> | 2020-02-04 22:18:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-05 08:18:02 +1100 |
| commit | d1d02d9eaed3ba0ae493d8f9558befc532d60616 (patch) | |
| tree | 8f9dcf87685edb3b7d1ce6e33d89efccfb0bef3b /internal/configuration/schema/configuration.go | |
| parent | 9c9d8518ebb2350e8f7ad4c025d6f8ebebd25ea6 (diff) | |
[FIX] Redirect to default URL after 1FA when default policy is one_factor. (#611)
* Redirect to default URL after 1FA when default policy is one_factor.
User is now redirected to the default redirection URL after 1FA if
the default policy is set to one_factor and there is no target URL
or if the target URL is unsafe.
Also, if the default policy is set to one_factor and the user is already
authenticated, if she visits the login portal, the 'already authenticated'
view is displayed with a logout button.
This fixes #581.
* Update users.yml
* Fix permissions issue causing suite test failure
Diffstat (limited to 'internal/configuration/schema/configuration.go')
| -rw-r--r-- | internal/configuration/schema/configuration.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/configuration/schema/configuration.go b/internal/configuration/schema/configuration.go index e29b9f14f..45c3473b7 100644 --- a/internal/configuration/schema/configuration.go +++ b/internal/configuration/schema/configuration.go @@ -15,10 +15,10 @@ type Configuration struct { AuthenticationBackend AuthenticationBackendConfiguration `mapstructure:"authentication_backend"` Session SessionConfiguration `mapstructure:"session"` - TOTP *TOTPConfiguration `mapstructure:"totp"` - DuoAPI *DuoAPIConfiguration `mapstructure:"duo_api"` - AccessControl *AccessControlConfiguration `mapstructure:"access_control"` - Regulation *RegulationConfiguration `mapstructure:"regulation"` - Storage *StorageConfiguration `mapstructure:"storage"` - Notifier *NotifierConfiguration `mapstructure:"notifier"` + TOTP *TOTPConfiguration `mapstructure:"totp"` + DuoAPI *DuoAPIConfiguration `mapstructure:"duo_api"` + AccessControl AccessControlConfiguration `mapstructure:"access_control"` + Regulation *RegulationConfiguration `mapstructure:"regulation"` + Storage *StorageConfiguration `mapstructure:"storage"` + Notifier *NotifierConfiguration `mapstructure:"notifier"` } |
