Skip to content

Commit

Permalink
Remove samlSessionIndex check (#26)
Browse files Browse the repository at this point in the history
Not all identity providers actually send a sessionid, which makes this check fail and making users unable to login.
  • Loading branch information
Big4SMK authored and Jonathan Davila committed Aug 31, 2018
1 parent b650240 commit 2bb80e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_saml2_pro_auth/auth.py
Expand Up @@ -61,7 +61,7 @@ def get_clean_map(user_map, saml_data):
class Backend(object): # pragma: no cover

def authenticate(self, request):
if not request.session['samlSessionIndex'] or not request.session['samlUserdata']:
if not request.session['samlUserdata']:
return None

User = get_user_model()
Expand Down

0 comments on commit 2bb80e8

Please sign in to comment.