File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,6 @@ How to use?
146
146
' first_name' : ' FirstName' ,
147
147
' last_name' : ' LastName' ,
148
148
' groups' : ' Groups' , # Optional
149
- ' token' : ' Token' , # Mandatory
150
149
},
151
150
' GROUPS_MAP' : { # Optionally allow mapping SAML2 Groups to Django Groups
152
151
' SAML Group Name' : ' Django Group Name' ,
Original file line number Diff line number Diff line change @@ -194,11 +194,6 @@ def acs(r):
194
194
'ATTRIBUTES_MAP' , {}).get ('first_name' , 'FirstName' )][0 ]
195
195
user_last_name = user_identity [settings .SAML2_AUTH .get (
196
196
'ATTRIBUTES_MAP' , {}).get ('last_name' , 'LastName' )][0 ]
197
- token = user_identity [settings .SAML2_AUTH .get (
198
- 'ATTRIBUTES_MAP' , {}).get ('token' , 'Token' )][0 ]
199
-
200
- if not token :
201
- return HttpResponseRedirect (get_reverse ([denied , 'denied' , 'django_saml2_auth:denied' ]))
202
197
203
198
target_user = None
204
199
is_new_user = False
You can’t perform that action at this time.
0 commit comments