mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-29 06:25:40 +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.pop('google_token', None)
|
||||||
session.clear()
|
session.clear()
|
||||||
logout_user()
|
logout_user()
|
||||||
|
if app.config.get('SAML_LOGOUT_REDIRECT'):
|
||||||
|
return redirect(app.config.get('SAML_LOGOUT_REDIRECT'))
|
||||||
|
else:
|
||||||
return redirect(url_for('login'))
|
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_ENTITY_ID = 'http://<SAML SP Entity ID>'
|
||||||
SAML_SP_CONTACT_NAME = '<contact name>'
|
SAML_SP_CONTACT_NAME = '<contact name>'
|
||||||
SAML_SP_CONTACT_MAIL = '<contact mail>'
|
SAML_SP_CONTACT_MAIL = '<contact mail>'
|
||||||
|
## uncomment to redirect to the given URL on logout
|
||||||
|
# SAML_LOGOUT_REDIRECT = 'https://<idp>/logout'
|
||||||
|
|
||||||
#Default Auth
|
#Default Auth
|
||||||
BASIC_ENABLED = True
|
BASIC_ENABLED = True
|
||||||
|
Loading…
Reference in New Issue
Block a user