Single sign-on with Microsoft Entra ID¶
Use OIDC. SAML is the alternative if you prefer an enterprise application with SAML (Alternative: SAML).
Verify your email domain first (Single sign-on).
Entra ID tokens carry no email_verified claim, so Preloop links an email to an
existing member only when the domain is verified on the account.
Register the application¶
- In the Microsoft Entra admin center, go to App registrations > New registration.
- Supported account types: Accounts in this organizational directory only (single tenant). Leave the redirect URI empty for now and register.
- Copy the Application (client) ID and the Directory (tenant) ID from Overview.
- Under Certificates & secrets, create a client secret and copy its Value.
- Under Token configuration, add the optional ID-token claim
email. Optional, for group mapping: Add groups claim and choose the group types to send. Entra sends group object IDs. If a user is in more groups than fit in the token, Entra sends an overage marker instead, and Preloop applies the connection's default role.
Finish in Preloop¶
- Go to Account settings > Single sign-on and click Add OIDC connection.
- Issuer:
https://login.microsoftonline.com/<tenant-id>/v2.0, with your Directory (tenant) ID. The multi-tenantcommonandorganizationsendpoints are refused. - Enter the client id and secret. Scopes:
openid email profile. Choose the default role and whether first sign-in creates a membership. Enable the connection and save. - In Entra, open Authentication > Add a platform > Web and enter the connection's callback URL as the redirect URI.
- Under Enterprise applications, open the app, set Assignment required? to Yes under Properties if only assigned people should sign in, and assign them under Users and groups.
- If you added a groups claim, set Groups claim or attribute to
groupsand map the group object IDs. - Click Test sign-in.
- Optional: turn on Require single sign-on (Enforcement and break-glass).
Alternative: SAML¶
Create the enterprise application¶
- In Preloop, go to Account settings > Single sign-on, click Add SAML connection, enter a name and save. Copy the SP metadata URL and the ACS URL.
- In the Microsoft Entra admin center, go to Enterprise applications > New application > Create your own application. Choose "Integrate any other application you don't find in the gallery".
- Open Single sign-on, choose SAML, and edit Basic SAML Configuration:
- Identifier (Entity ID): the Preloop SP metadata URL.
- Reply URL (Assertion Consumer Service URL): the Preloop ACS URL.
- Leave Sign on URL and Relay State empty. Users start from the Preloop sign-in page.
- Under Attributes & Claims:
- Add a claim named
email(no namespace) with source attributeuser.mail. (Alternatively, keep only the defaulthttp://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddressclaim and set the connection'sattribute_mappingemailkey to that name through the API.) - Optional: add a claim named
displayNamefromuser.displayname. - Optional: Add a group claim. Entra sends group object IDs, so you map those IDs in Preloop. If a user is in more groups than fit in the assertion, Entra sends an overage marker instead, and Preloop applies the connection's default role.
- Under SAML Certificates, keep the default signing option "Sign SAML assertion" and the SHA-256 algorithm. Copy the App Federation Metadata Url.
- Under Users and groups, assign the people who should sign in.
Finish the SAML connection in Preloop¶
- Edit the connection. Under Import identity provider metadata, paste the App Federation Metadata URL, click Preview metadata, then Apply metadata to editor.
- If you added a group claim, set Groups claim or attribute to
http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsand map the group object IDs. - Choose the default role and whether first sign-in creates a membership. Enable the connection and save.
- Click Test sign-in.
- Optional: turn on Require single sign-on (Enforcement and break-glass).
Entra token encryption is optional. To use it, set an SP signing key in Preloop and upload the public SP certificate shown on the connection to Entra.