Skip to content

Commit bf8445e

Browse files
committed
Add better documentation for Microsoft Entra ID in .env.example
1 parent 6fdd9dc commit bf8445e

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

dev/.env.example

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,31 @@ NEXT_PUBLIC_URL=http://localhost:3000
2929
# ZITADEL_CLIENT_SECRET=
3030

3131
################################################################################
32-
# Microsoft Entra Id OAuth 2.0 config
32+
# Microsoft Entra ID OAuth 2.0 config
3333
################################################################################
34-
# optional: Microsoft Entra Id OAuth 2.0 client id, not activated if not set
34+
# optional: Microsoft Entra ID client id, not activated if not set
3535
# MICROSOFT_ENTRA_ID_CLIENT_ID=
3636

37-
# optional: Microsoft Entra Id OAuth 2.0 client secret, not activated if not set
37+
# optional: Microsoft Entra ID client secret, not activated if not set
3838
# MICROSOFT_ENTRA_ID_CLIENT_SECRET=
3939

40-
# optional: Microsoft Entra Id OAuth 2.0 client secret, not activated if not set
40+
# optional: Microsoft Entra ID client secret, not activated if not set
4141
# MICROSOFT_ENTRA_ID_TENANT_ID=
4242

43-
# optional: Microsoft Entra Id OAuth 2.0 administrator group id, activated if not set
43+
# optional: Microsoft Entra ID administrator group id, activated if not set
4444
# MICROSOFT_ENTRA_ID_ADMINISTRATOR_GROUP_ID=
4545

46+
# Note: For Microsoft Entra ID, you need to:
47+
# 1. Create an app registration
48+
# - Go to Azure Portal -> Microsoft Entra ID -> App Registrations -> New Registration
49+
# - Fill in the name and select the supported account types
50+
# - Add a "Web" redirect URI: http://localhost:3000/api/users/oauth/microsoft-entra-id/callback
51+
# - When created, go to API Permissions -> Add a permission -> Microsoft Graph -> Delegated permissions -> Select the ones you need, e.g. email, openid, profile and offline_access -> Add permissions
52+
# - Optional: If you do not want users to have to give consent to your app everytime they login: Click on Grant admin consent for {tenant} -> Yes
53+
# - Optional: If you want groups to be part of your token(s), you can go to Token configuration -> Add groups claim -> Select the groups you want to add -> Save
54+
# - Go to Certificates & secrets -> Client secrets -> New client secret -> Add a description -> Expires -> Add -> Copy the secret (it will only be shown once) -> And save the secret somewhere safe or add it to your .env file
55+
# You can read a little about registering apps here as well: https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
56+
4657
################################################################################
4758
# Apple OAuth Config
4859
################################################################################

0 commit comments

Comments
 (0)