Correction of redirect URL after successful SAML login

From my perspective, if agreed, this change can be merged, because the basic SAM auth. functionality is now present
and was tested with "samlidp.io" iDP.

However, there are further improvements which I would like to integrate, but as a separate features in separate pull requests
This commit is contained in:
Neven1986 2019-12-15 01:15:30 +01:00
parent 894756ad96
commit 37f24f9fde

View file

@ -663,7 +663,7 @@ def saml_authorized():
user.update_profile()
session['authentication_type'] = 'SAML'
login_user(user, remember=False)
return redirect(url_for('index'))
return redirect(url_for('index.login'))
else:
return render_template('errors/SAML.html', errors=errors)