mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-28 14:05:41 +00:00
fixed name-id formating and name-id
This commit is contained in:
parent
e535ce0822
commit
85c07210db
11
app/views.py
11
app/views.py
@ -393,8 +393,12 @@ def logout():
|
|||||||
req = utils.prepare_flask_request(request)
|
req = utils.prepare_flask_request(request)
|
||||||
auth = utils.init_saml_auth(req)
|
auth = utils.init_saml_auth(req)
|
||||||
if app.config.get('SAML_LOGOUT_URL'):
|
if app.config.get('SAML_LOGOUT_URL'):
|
||||||
return auth.logout(redirect_url = app.config.get('SAML_LOGOUT_URL'))
|
return redirect(auth.logout(name_id_format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
|
||||||
return auth.logout()
|
redirect_url = app.config.get('SAML_LOGOUT_URL'),
|
||||||
|
session_index = session['samlSessionIndex'], name_id=session['samlNameId']))
|
||||||
|
return redirect(auth.logout(name_id_format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
|
||||||
|
session_index = session['samlSessionIndex'],
|
||||||
|
name_id=session['samlNameId']))
|
||||||
clear_session()
|
clear_session()
|
||||||
redirect_url = url_for('login')
|
redirect_url = url_for('login')
|
||||||
return redirect(url_for('login'))
|
return redirect(url_for('login'))
|
||||||
@ -403,9 +407,10 @@ def logout():
|
|||||||
def saml_logout():
|
def saml_logout():
|
||||||
req = utils.prepare_flask_request(request)
|
req = utils.prepare_flask_request(request)
|
||||||
auth = utils.init_saml_auth(req)
|
auth = utils.init_saml_auth(req)
|
||||||
url = auth.process_slo(delete_session_cb=clear_session())
|
url = auth.process_slo()
|
||||||
errors = auth.get_errors()
|
errors = auth.get_errors()
|
||||||
if len(errors) == 0:
|
if len(errors) == 0:
|
||||||
|
clear_session()
|
||||||
if url is not None:
|
if url is not None:
|
||||||
return redirect(url)
|
return redirect(url)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user