Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = ({env}) => ({
AZUREAD_OAUTH_CLIENT_ID: '[Client ID created in AzureAD]', // [Application (client) ID]
AZUREAD_OAUTH_CLIENT_SECRET: '[Client Secret created in AzureAD]',
AZUREAD_SCOPE: 'user.read', // https://learn.microsoft.com/en-us/graph/permissions-reference
AZUREAD_OAUTH_USE_OIDC: 'true', //

// OpenID Connect
OIDC_REDIRECT_URI: 'http://localhost:1337/strapi-plugin-sso/oidc/callback', // URI after successful login
Expand Down
2 changes: 2 additions & 0 deletions docs/en/azuread/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This document provides instructions for integrating AzureAD as a Single Sign-On
| AZUREAD_TENANT_ID | ✅ | - |
| AZUREAD_OAUTH_REDIRECT_URI | - | http://localhost:1337/strapi-plugin-sso/azuread/callback |
| AZUREAD_SCOPE | - | user.read |
| AZUREAD_OAUTH_USE_OIDC | - | true |

### Configuring environment variables

Expand All @@ -27,5 +28,6 @@ Use the following environment variables to configure the AzureAD integration:
3. `AZUREAD_TENANT_ID`: The Tenant ID created in AzureAD.
4. `AZUREAD_OAUTH_REDIRECT_URI`: The callback URL used by AzureAD to redirect the user after authentication. Defaults to 'http://localhost:1337/strapi-plugin-sso/azuread/callback'.
5. `AZUREAD_SCOPE`: The permissions your application requires from the user. Defaults to 'user.read'. More information on permissions can be found in the [Microsoft Graph permissions reference](https://docs.microsoft.com/en-us/graph/permissions-reference).
6. `AZUREAD_OAUTH_USE_OIDC`: Using OIDC calls graph.microsoft.com/oidc/userinfo while setting it to false calls /me as documented here : https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http

Make sure to replace the placeholders with the actual values you obtained from AzureAD.
Loading