mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-27 21:45:39 +00:00
added configurable logout redirect URL
This commit is contained in:
parent
620b0b55e8
commit
47cf1aff4a
@ -387,7 +387,10 @@ def logout():
|
||||
session.pop('google_token', None)
|
||||
session.clear()
|
||||
logout_user()
|
||||
return redirect(url_for('login'))
|
||||
if app.config.get('SAML_LOGOUT_REDIRECT'):
|
||||
return redirect(app.config.get('SAML_LOGOUT_REDIRECT'))
|
||||
else:
|
||||
return redirect(url_for('login'))
|
||||
|
||||
|
||||
@app.route('/dashboard', methods=['GET', 'POST'])
|
||||
|
@ -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