Sign in with Microsoft
To enable Sign in with Microsoft, you need to create an OAuth app in your Microsoft account. The following steps guide you through the process:
-
Go to Azure Portal.
-
Navigate to Azure Active Directory > App registrations > New registration
-
Fill below details:
- Name: CubeAPM
- Redirect URIs:
<cubeapm_address>/api/auth/self-service/methods/oidc/callback/microsoft, e.g., https://cubeapm.yourdomain.com/api/auth/self-service/methods/oidc/callback/microsoft ( Please choose option as "Web" for setting redirect URL)
-
Save the Application (client) ID and Directory (tenant) ID
-
Configure App Secrets
Under Certificates & secrets -> Click New client secret -> Save the client secret securely ( this is your client-secret)
-
Expose Permissions
In API permissions, add: openid, email, profile
-
The above Client ID, Client Secret and Client Tenant can be provided to CubeAPM to enable Sign in with Microsoft (set
auth.oidc.microsoft.client-id,auth.oidc.microsoft.client-secretandauth.oidc.microsoft.tenantproperties in/etc/cubeapm/config.properties, orconfigVars.auth.oidc.microsoft.clientId,configVars.auth.oidc.microsoft.clientSecretandconfigVars.auth.oidc.microsoft.tenantin helm chart values file).