Microsoft Entra ID
Setup Entra ID
- Log in to your Azure Portal and navigate to Microsoft Entra ID.
- In the left navigation panel go to Manage > App registrations.
- Click New Registration and specify a name.
- Select the appropriate option for the authorized users.
- Scroll down to Redirect URI (optional) and specify the public URL of your application and append the path
/oidc/callback
.
Eg.:https://my-app.mydomain.com/oidc/callback
.
Middleware Configuration
tip
You will find the client id and tenant-id on the Overview page of your App registration. They're called Application (client) ID and Directory (tenant) ID or similar. The client secret can be found on the left side under Manage > Certificates & secrets. Be sure you copy the Value, not the Secret ID.
http:
middlewares:
oidc-auth:
plugin:
traefik-oidc-auth:
Provider:
Url: "https://login.microsoftonline.com/<YourTenantId>/v2.0"
ClientId: "<YourClientId>"
ClientSecret: "<YourClientSecret>"
Scopes: ["openid", "profile", "email"]