This entry guides you through the steps on how to set-up Microsoft SSO in Ambience/Repertoire 202x.
For the full step-by-step guide:
Configuring Microsoft Entra ID SSO.pdf (234.5 KB)
Prerequisites:
- The Ambience/Repertoire server has a DNS name and is served over HTTPS.
http://localhostcan be used for local testing only. - Permission to register applications in Microsoft Entra ID.
Overview of Steps
- Register an application in Microsoft Entra ID. Add the Redirect URI (
https://<your-domain>/authclient), then record the Application (client) ID and a client secret. - Get the OpenID Connect endpoints. These come from the app’s OpenID Connect metadata document: the authorization, token, userinfo and logout endpoints.
- Prepare two
application.conffiles:application.conf.default: the built-in simple-sso login, used for setup and as a fallback.application.conf.microsoft-sso: set up for Microsoft Entra ID.
- Create users and roles while running in simple-sso mode. Each user’s Name must be their Microsoft email address.
- Switch to the Microsoft SSO config and test. Users should be redirected to the Microsoft sign-in page, then returned to the Service Chooser.
Key Configuration
In application.conf.microsoft-sso:
openid-field = "email"
service-definition {
elxsso {
authorization = "https://login.microsoftonline.com/<tenantID>/oauth2/v2.0/authorize"
token = "https://login.microsoftonline.com/<tenantID>/oauth2/v2.0/token"
userinfo = "https://graph.microsoft.com/oidc/userinfo"
resource = ${sso-internal-server-baseurl}"/simple-sso/resource"
logout = "https://login.microsoftonline.com/<tenantID>/oauth2/v2.0/logout"
requiresPKCE = true
debug = false
client {
id = "<application-client-id>"
secret = "<client-secret-value>"
endpoint = ${sso-client-baseurl}"/authclient"
}
}
}
Notes
- The Redirect URI registered in Entra ID must exactly match
client.endpoint. - The client secret is shown only once when it’s created, and it expires. SSO will stop working once it expires, so note the expiry date.
- Users must exist in Ambience before they can log in with SSO, and their Name must exactly match their Microsoft email.
- If you’re locked out, swap the config files back to return to simple-sso login.