Skip to content

AD FS

Many sites with Active Directory already run AD FS, which speaks OIDC. Prefer it over LDAP logins: the CA never sees a password.

Note

Check Microsoft's AD FS documentation for the current steps on your version.

Register the application

  1. AD FS Management → Application Groups → Add Application Group → Server application (a confidential client).
  2. Redirect URI: https://ca.example.com:8443/v1/oidc/callback.
  3. Note the client identifier; generate a shared secret and store it in /etc/bastionxp-ca/oidc-client-secret.
  4. Allow the openid, profile and email scopes.

Groups

Add an issuance transform rule that sends the person's groups as a claim named groups, e.g. Send LDAP Attributes as Claims, with Token-Groups - Unqualified Names mapped to the outgoing claim type groups.

Configuration

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

oidc:
  issuer: https://adfs.corp.example.com/adfs
  client_id: <client-identifier>
  client_secret_file: /etc/bastionxp-ca/oidc-client-secret

access:
  - groups: [linux-users]
    ssh_principals: ["{short_username}"]
  - groups: [ca-admins]
    admin: true