Skip to content

Glossary

OpenID Connect (OIDC)

OpenID Connect is the identity layer on top of OAuth 2.0: apps receive a signed ID token saying who signed in, from a provider they discover by its issuer.

OpenID Connect (OIDC) is an identity layer on top of OAuth 2.0 (RFC 6749). OAuth lets an application obtain an access token to call an API; OpenID Connect adds a standard answer to the question "who just signed in?". It is defined in OpenID Connect Core 1.0.

ID tokens and UserInfo

At the end of a sign-in, the provider returns an ID token: a signed JWT whose claims name the issuer (iss), the user (sub), the application it was issued for (aud) and when it expires. The application checks the signature against the provider's public keys. For more profile data, it calls the UserInfo endpoint with the access token. Scopes such as profile and email decide which claims it gets.

Discovery

A provider is identified by its issuer URL. With OpenID Connect Discovery 1.0, a client fetches <issuer>/.well-known/openid-configuration to learn the endpoints and the jwks_uri that serves the signing keys. That is why most libraries only ask for an issuer, a client ID and a secret. Public clients, which cannot keep a secret, add PKCE.

In Ostiary

Ostiary is an OpenID Connect provider: its issuer is https://<your-domain>/api/auth, and any OIDC library can sign people in with it. That is how it provides single sign-on across your apps. See Run an OpenID Connect provider on Better Auth for the setup, and the Auth0 alternative overview for the rest of the product.