You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`AUTH_<PROVIDER>_CLIENT_ID`| Client identifier for the OAuth provider. ||
40
+
|`AUTH_<PROVIDER>_CLIENT_SECRET`| Client secret for the OAuth provider. ||
41
+
|`AUTH_<PROVIDER>_SCOPE`| A white-space separated list of permissions to request. |`email`|
42
+
|`AUTH_<PROVIDER>_AUTHORIZE_URL`| Authorization page URL of the OAuth provider. ||
43
+
|`AUTH_<PROVIDER>_ACCESS_URL`| Access token URL of the OAuth provider. ||
44
+
|`AUTH_<PROVIDER>_PROFILE_URL`| User profile URL of the OAuth provider. ||
45
+
|`AUTH_<PROVIDER>_IDENTIFIER_KEY`| User profile identifier key <sup>[1]</sup>. Will default to `EMAIL_KEY`. ||
46
+
|`AUTH_<PROVIDER>_EMAIL_KEY`| User profile email key. |`email`|
47
+
|`AUTH_<PROVIDER>_FIRST_NAME_KEY`| User profile first name key. ||
48
+
|`AUTH_<PROVIDER>_LAST_NAME_KEY`| User profile last name key. ||
49
+
|`AUTH_<PROVIDER>_ALLOW_PUBLIC_REGISTRATION`| Automatically create accounts for authenticating users. |`false`|
50
+
|`AUTH_<PROVIDER>_DEFAULT_ROLE_ID`| A Directus role ID to assign created users. ||
51
+
|`AUTH_<PROVIDER>_SYNC_USER_INFO`| Set user's first name, last name and email from provider's user info on each login. |`false`|
52
+
|`AUTH_<PROVIDER>_ICON`| SVG icon to display with the login link. Can be a Material Icon or Font Awesome Social Icon. |`account_circle`|
53
+
|`AUTH_<PROVIDER>_LABEL`| Text to be presented on SSO button within the Data Studio. |`<PROVIDER>`|
54
+
|`AUTH_<PROVIDER>_PARAMS`| Custom query parameters applied to the authorization URL. ||
55
+
|`AUTH_<PROVIDER>_REDIRECT_ALLOW_LIST`| A comma-separated list of external URLs (including paths) allowed for redirecting after successful login. ||
56
+
|`AUTH_<PROVIDER>_ROLE_MAPPING`| A JSON object in the form of `{ "openid_group_name": "directus_role_id" }` that you can use to map OAuth claim groups to Directus roles <sup>[2]</sup>. If not specified, falls back to `AUTH_<PROVIDER>_DEFAULT_ROLE_ID` URL. ||
57
+
|`AUTH_<PROVIDER>_GROUP_CLAIM_NAME`| The name of the OAuth claim that contains your user's groups. |`groups`|
56
58
57
59
<sup>[1]</sup> When authenticating, Directus will match the identifier value from the external user profile to a Directus users "External Identifier".
58
60
61
+
<sup>[2]</sup> As Directus only allows one role per user, evaluating stops after the first match. An OAuth user that is member of both e.g. developer and admin groups may be assigned different roles depending on the order that you specify your role-mapping in: In the following example said OAuth user will be assigned the role `directus_developer_role_id`
0 commit comments