mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-28 14:05:41 +00:00
added configurable logout redirect URL
This commit is contained in:
parent
620b0b55e8
commit
47cf1aff4a
@ -387,6 +387,9 @@ def logout():
|
||||
session.pop('google_token', None)
|
||||
session.clear()
|
||||
logout_user()
|
||||
if app.config.get('SAML_LOGOUT_REDIRECT'):
|
||||
return redirect(app.config.get('SAML_LOGOUT_REDIRECT'))
|
||||
else:
|
||||
return redirect(url_for('login'))
|
||||
|
||||
|
||||
|
@ -92,6 +92,8 @@ SAML_METADATA_CACHE_LIFETIME = 1
|
||||
SAML_SP_ENTITY_ID = 'http://<SAML SP Entity ID>'
|
||||
SAML_SP_CONTACT_NAME = '<contact name>'
|
||||
SAML_SP_CONTACT_MAIL = '<contact mail>'
|
||||
## uncomment to redirect to the given URL on logout
|
||||
# SAML_LOGOUT_REDIRECT = 'https://<idp>/logout'
|
||||
|
||||
#Default Auth
|
||||
BASIC_ENABLED = True
|
||||
|
Loading…
Reference in New Issue
Block a user