Skip to main content

OIDC sign-in

The problem​

Users should sign in with their company account, not with a separate password.

The pattern​

Liberty Next signs users in through any OpenID Connect provider. The local sign-in form stays available; a Sign in with OIDC button is added below it.

The recipe​

1. Register the application at the provider​

At the provider (Entra ID, Keycloak, Okta…), create a web application (confidential client) with:

  • Redirect URI: https://<host>/auth/oidc/callback;
  • the scopes openid email profile;
  • a client secret.

Note the client ID, the client secret and the discovery URL (…/.well-known/openid-configuration).

2. Fill the settings​

Liberty Next → Administer → App → OpenID Connect (SSO):

FieldValue
EnabledOn.
Discovery URLThe provider's .well-known/openid-configuration.
Client ID, Client secretAs registered — the secret is encrypted when saved.
Scopesopenid email profile.
Username claimpreferred_username by default; email or upn depending on the provider.

Save: the change applies without a restart. See App settings → OpenID Connect.

3. First sign-in and roles​

Users appear in Liberty Next → Administer → Access → Users at their first sign-in, active and without roles: they see an empty application until a role is given to them. The usual onboarding: the person signs in once, an administrator assigns the roles. See Users.

Check​

SymptomCause
No OIDC buttonEnabled is off.
The provider refuses the redirectThe redirect URI registered at the provider is not exactly https://<host>/auth/oidc/callback.
Signed in, empty applicationExpected for a new user: assign roles.
Wrong user nameChange Username claim to the claim the provider fills.

What's next​