Sign in with Microsoft Entra ID

  • For IT
  • Bugsoft Portal 4.12.14

The app registration in Entra, the details on Connections, who can sign in, and renewing the secret.

What you need

An administrator of Microsoft Entra ID who may create an app registration and grant admin consent. The page Admin › Settings › Sign-in › Connections › Microsoft shows every step, with the exact addresses for your Bugsoft Portal.

The numbered guide with the redirect and sign-out URI (copy buttons), the permissions, auth_time and login_hint, and on the right the fields Tenant ID, Client ID, client secret, its end date and allowed tenants, with Save and test

Create the app registration

  1. In the Entra admin center, go to Applications › App registrations › New registration. Choose a name, for example Bugsoft Portal, and Accounts in this organizational directory only.
  2. Under the platform Web, register the redirect URI that Connections shows, for example https://portal.klaverveld.example/auth/callback.
  3. Also register the logout URI https://portal.klaverveld.example/auth/logged-out: as a second redirect URI, and as the front-channel logout URL.
  4. Under API permissions, add the delegated Microsoft Graph permissions that Connections lists. Also add the application permissions GroupMember.Read.All and User.Read.All.
  5. Grant admin consent for all permissions.
  6. Under Token configuration, add the optional claims auth_time and login_hint to the ID token. auth_time is required: without it, Confirm it is you does not work. Connections shows whether both arrived at the last sign-in.
  7. Under Certificates & secrets, create a client secret. Write down its value (not the secret ID) and its expiry date.

Enter the details on Connections

  1. Enter the Tenant ID (Directory ID), the Client ID (Application ID), the client secret and the last day of the secret.
  2. Choose Save and test. Bugsoft Portal asks Microsoft whether everything is right.

If the test fails, you see why in plain words (for example "The client secret is wrong" or "has expired"). Nothing is saved.

If a value is already set in the server environment (for example with Docker), you see Set on the server. Change it on the server.

More than one organisation (tenant)? In Entra choose multitenant, and enter their tenant IDs under Allowed tenants.

Choose who can sign in

There are two ways:

  • In Entra, under Enterprise applications › Bugsoft Portal › Properties, switch on Assignment required and assign the groups. People who are not assigned cannot get in, and do not count for the licence.
  • Or, on Connections, fill in Only these groups may sign in with the object IDs of the groups.

Renew the secret

  1. In Entra, create a new client secret next to the old one.
  2. On Connections, enter the new secret and its new last day, and choose Save and test.
  3. Then remove the old secret in Entra.

You get an e-mail 60, 30, 14, 7 and 1 days before the secret expires.

Stuck? See Questions and problems or contact Bugsoft at ugurs156@gmail.com.