SAMLSSO with Microsoft Entra#
This connects the server to Microsoft Entra ID, formerly Azure AD, by SAML, with SAMLSSO.
Entra also speaks OpenID Connect, which is less to set up: CrushOIDC with Microsoft Entra. Use SAML where your organisation asks for it.
In the examples the server is https://files.example.com/.
1. An enterprise application in Entra#
In the Microsoft Entra admin center: Enterprise applications › New application › Create your own application. Give it a name and choose the kind that is "not found in the gallery".
In the application: Single sign-on › SAML, and Edit the first box, Basic SAML Configuration.
| Field | Give |
|---|---|
| Identifier (Entity ID) | https://files.example.com/ |
| Reply URL (Assertion Consumer Service URL) | https://files.example.com/?u=SSO_SAML&p=none |
| Sign on URL, optional | https://files.example.com/?u=SSO_SAML&p=redirect |
Save. Then, under Users and groups, assign the people or groups who may use the server. Nobody else gets through Entra.
2. Take Entra's values#
On the same page, further down:
| In Entra | It goes into |
|---|---|
| Microsoft Entra Identifier, in the box "Set up …" | SAML Provider URL (EntityID) |
| Login URL, in the same box | IDP Redirect URL (HTTP-POST) |
| Identifier (Entity ID), from step 1 | SAML Issuer and SAML Audience |
Federation Metadata XML, a download: the X509Certificate block in the middle of the file. Or Certificate (Base64), without its first and last line. |
Base64 encoded PEM Signing certificate |
3. Set the plugin#
| Setting | Value |
|---|---|
| the four from step 2 | |
| This CrushMFT server's URL | https://files.example.com/, with the slash at the end |
| Authentication type | urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport. If your users sign in to Entra with a second factor or without a password and are refused with a message about the authentication method, use auto. |
4. The name, and groups#
Under Attributes & Claims in the application:
| Claim | Is |
|---|---|
| Unique User Identifier (Name ID) | becomes the user name on the server. By default the user principal name, such as jdoe@example.com. Change the source to another attribute if you want shorter names. |
| Add a group claim | sends the person's groups. Choose which groups, and as Source attribute how they are named: the group ID is the default; names are possible for groups that come from a Windows domain. Under Advanced options, customise the name of the claim to group. |
With the group claim, list the groups under LDAP roles user must be member of, by what Entra sends, ID or name, each with its template user, and set SAMLSSO Cache Time to -1. Without groups, add the role -ALL_ROLES- and let Entra's assignment decide who gets in. See what the user gets.
5. Try it#
Open https://files.example.com/?u=SSO_SAML&p=redirect, or use Test on Entra's single sign-on page, which shows what Entra sends.
Things to know#
- The certificate ends, three years after Entra made it, and Entra mails a reminder to the address on the single sign-on page. Make a new one there, put it into the plugin, and then make it active.
- A person in very many groups gets no group list from Entra in a SAML message, only a pointer to fetch them. Send only the groups assigned to the application: that choice is in the group claim.
- Guests arrive with a name that holds
#EXT#. Choose a Name ID that reads well for them, such as the email address. - Conditional access of Entra applies to this application like to any other: where and how people may sign in is decided there.
Not tried for this page#
Nothing was run against Microsoft Entra. The steps on the provider's side follow the earlier documentation and the provider's console as it is known; names of menus change over time. The plugin's side is from its screen and from what the plugin's file says it checks. Try the first setup with one test user and Debug on.