File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -103,19 +103,34 @@ 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 }
118-
120+
121+
122+
123+ Add this to your INSTALLED_APPS.
124+
125+ .. code-block :: python
126+
127+ INSTALLED_APPS = [
128+ ...
129+ ' django_auth_adfs' ,
130+ ...
131+ ]
132+
133+
119134
120135 Add this to your AUTHENTICATION_BACKENDS.
121136
@@ -124,6 +139,7 @@ Add this to your AUTHENTICATION_BACKENDS.
124139 AUTHENTICATION_BACKENDS = [
125140 ...
126141 ' django_auth_adfs.backend.AdfsAccessTokenBackend' ,
142+ ' django_auth_adfs.backend.AdfsAuthCodeBackend'
127143 ...
128144 ]
129145
You can’t perform that action at this time.
0 commit comments