Skip to content

Microsoft Entra ID

Note

Provider consoles change over time; check Microsoft's documentation for the current menu names.

Register the application

  1. Entra admin center → Identity → Applications → App registrations → New registration.
  2. Name: bxp. Supported account types: Accounts in this organizational directory only.
  3. Redirect URI: platform Web, https://ca.example.com:8443/v1/oidc/callback.
  4. Note the Application (client) ID and the Directory (tenant) ID.
  5. Certificates & secrets → New client secret. Copy the secret's value into /etc/bastionxp-ca/oidc-client-secret.

Groups

  1. Token configuration → Add groups claim. Choose Groups assigned to the application (recommended) or Security groups, for the ID token.
  2. Entra sends group object IDs, so write the IDs in groups:.
  3. Limit the claim to the groups assigned to the application: a person in more than about 200 groups otherwise gets no list in the token, and BastionXP CA refuses the login rather than guess.

Configuration

server:
  url: https://ca.example.com:8443

oidc:
  issuer: https://login.microsoftonline.com/<tenant-id>/v2.0
  client_id: <application-client-id>
  client_secret_file: /etc/bastionxp-ca/oidc-client-secret
  username_claim: preferred_username      # never "email" with Entra

access:
  - groups: [3f2a0c1e-1111-2222-3333-444455556666]   # linux-users
    ssh_principals: ["{short_username}"]
  - groups: [9b8c7d6e-aaaa-bbbb-cccc-ddddeeeeffff]   # ca-admins
    admin: true

preferred_username is the user's UPN, e.g. [email protected], so {short_username} is alice.