Safeguard Documentation Center
SSO Authentication

OpenID Connect (OIDC)

Connect any OIDC 1.0-compliant provider, such as a self-hosted Keycloak, Auth0, or PingFederate instance.

OpenID Connect (OIDC)

Use this for any OIDC 1.0-compliant provider that isn't covered by the dedicated Google/Microsoft/GitHub social options (for example, a self-hosted Keycloak, Auth0, or PingFederate instance).

  1. In your IdP, register a new confidential OIDC client/application.

  2. Set the Redirect URI to the Callback URL (https://api.safeguard.sh/auth/api/v1/sso/callback).

  3. Collect the Authorization endpoint, Token endpoint, and UserInfo endpoint URLs (most providers publish these on a /.well-known/openid-configuration discovery document), plus the Client ID and Client Secret.

  4. In Safeguard, click Add Provider → OpenID Connect and fill in:

    FieldValue
    AliasURL-safe id, e.g. keycloak, auth0
    Display NameShown on the login screen
    Authorization URLFrom step 3
    Token URLFrom step 3
    User Info URLFrom step 3
    Client IDFrom step 3
    Client SecretFrom step 3
    Default ScopesDefaults to openid profile email — leave as-is unless your provider requires more
  5. Click Save, then Test.

Example values

Illustrative values for a self-hosted Keycloak realm named acme. The Client ID/Secret are obvious dummies — use the real ones from your IdP.

In Safeguard — Add Provider → OpenID Connect:

FieldExample value
Aliaskeycloak
Display NameSign in with Keycloak
Authorization URLhttps://idp.example.com/realms/acme/protocol/openid-connect/auth
Token URLhttps://idp.example.com/realms/acme/protocol/openid-connect/token
User Info URLhttps://idp.example.com/realms/acme/protocol/openid-connect/userinfo
Client IDsafeguard-oidc-client
Client Secretsk_live_xxxxxxxxxxxxxxxx
Default Scopesopenid profile email

In your IdP — register this Redirect URI on the client:

https://api.safeguard.sh/auth/api/v1/sso/callback

On this page