File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -103,18 +103,21 @@ Replace your AUTH_ADFS with this.
103103
104104
105105 AUTH_ADFS = {
106- ' AUDIENCE' : client_id,
106+ ' AUDIENCE' : [ f ' api:// { client_id} ' , client_id] ,
107107 ' CLIENT_ID' : client_id,
108108 ' CLIENT_SECRET' : client_secret,
109- ' CLAIM_MAPPING' : {' first_name' : ' given_name' ,
110- ' last_name' : ' family_name' ,
111- ' email' : ' upn' },
109+ ' CLAIM_MAPPING' : {
110+ ' first_name' : ' given_name' ,
111+ ' last_name' : ' family_name' ,
112+ ' email' : ' email'
113+ },
112114 ' GROUPS_CLAIM' : ' roles' ,
113115 ' MIRROR_GROUPS' : True ,
114116 ' USERNAME_CLAIM' : ' upn' ,
115117 ' TENANT_ID' : tenant_id,
116- ' RELYING_PARTY_ID' : client_id,
118+ ' RELYING_PARTY_ID' : client_id
117119 }
120+
118121
119122
120123 Add this to your AUTHENTICATION_BACKENDS.
@@ -124,6 +127,7 @@ Add this to your AUTHENTICATION_BACKENDS.
124127 AUTHENTICATION_BACKENDS = [
125128 ...
126129 ' django_auth_adfs.backend.AdfsAccessTokenBackend' ,
130+ ' django_auth_adfs.backend.AdfsAuthCodeBackend'
127131 ...
128132 ]
129133
You can’t perform that action at this time.
0 commit comments