Skip to main content

Microsoft

Signs users in with Microsoft Entra ID (formerly Azure AD). This is the usual choice for organisations already on Microsoft 365.

Microsoft is the only template with an extra required field — the tenant ID or domain.

You need: permission to create an app registration in Entra (Application Developer or higher).

In AuthSec

Identity Providers → + Add provider → OIDC / OAuth 2.0 → Microsoft. Copy the Callback URL.

Microsoft setup steps

① Entra setup steps, with a link to the admin center · ② the Callback URL to copy

In the Entra admin center

  1. Applications → App registrations → New registration
  2. Give it a name — this is internal, users never see it
  3. Under Redirect URI, set the platform to Web and paste the Callback URL
  4. Register
  5. From the Overview page, copy the Application (client) ID and the Directory (tenant) ID
  6. Certificates & secrets → New client secret, then copy the secret Value
Copy the secret Value, not the Secret ID

Entra shows two columns after you create a secret. The Value is the credential; the Secret ID is just a reference. The Value is displayed once — navigate away and you must create a new secret. Pasting the Secret ID produces invalid_client at sign-in.

Fields in AuthSec

Microsoft fields

① Display Name · ② Client ID and Secret · ③ Microsoft tenant ID/domain

FieldValue
Display NameWhat the login button says — "Microsoft"
Client IDApplication (client) ID — a GUID
Client SecretThe secret Value
Microsoft tenant ID/domainDirectory (tenant) ID, or a verified domain like contoso.onmicrosoft.com

Which tenant value to use

You wantEnter
Only your own organisationYour Directory (tenant) ID, or verified domain
Any Entra organisationorganizations
Entra plus personal Microsoft accountscommon

Naming a specific tenant is the stricter, safer setting — accounts outside it cannot sign in at all. The account types you allowed during registration must also permit whatever you put here.

Gotchas

  • Client secrets expire. Entra defaults to 6 or 24 months. Sign-in breaks on the day it lapses, with no warning from AuthSec — put the expiry date in a calendar.
  • Admin consent. If your tenant requires admin approval for new apps, an administrator must grant consent once before anyone can sign in.
  • Tenant restrictions are enforced by Microsoft, not AuthSec. A user outside the named tenant fails at Microsoft's screen, before AuthSec sees anything.