Skip to content

OIDC single sign-on

Most companies already have an identity provider: Microsoft Entra ID, AD FS, Google Workspace, Okta, Keycloak, Auth0, GitLab. BastionXP CA speaks OpenID Connect (OIDC), which all of them support, so people log in with their company account, with the provider's MFA and policies.

People leave out --token, their browser opens, and the certificate arrives:

$ bxp ssh --key ~/.ssh/id_ed25519.pub
Your browser opens for a login.
If it does not, open this address yourself, on this machine:

  https://ca.example.com:8443/v1/oidc/login?callback=http%3A%2F%2F127.0.0.1%3A52113%2Fcallback&...

Waiting for the login...
Certificate:  /home/alice/.ssh/id_ed25519-cert.pub
Principals:   alice
Valid until:  2026-11-16 08:28 UTC

How a login works

A login is one trip of the person's browser:

The OIDC login: bxp ssh opens the browser, the browser logs in at the identity provider via BastionXP CA server, and bxp ssh receives a one-time token that it exchanges for a certificate The OIDC login: bxp ssh opens the browser, the browser logs in at the identity provider via BastionXP CA server, and bxp ssh receives a one-time token that it exchanges for a certificate

  • The CA asks the provider who the person is and which groups they are in, at every login.
  • The access rules turn that into what the person may have.
  • Nothing is saved on the person's machine besides the certificate: every request is its own login. With an open session at the provider, that is one flash of a browser window.
  • The result is only ever sent to 127.0.0.1 on the person's machine: open the login address on the same machine.

What people can do

Person Can
In a rule with ssh_principals Get SSH user certificates for those login names.
In a rule with admin: true Create one-time tokens for anything, from their own machine; request any certificate directly.

Next

  1. Server setup
  2. Your provider: Entra ID · AD FS · Okta · Keycloak · Google · Others
  3. Access rules
  4. User guide