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 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.1on 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¶
- Server setup
- Your provider: Entra ID · AD FS · Okta · Keycloak · Google · Others
- Access rules
- User guide