Skip to content

OIDC provider (Sign in with Ubikap)

Ubikap is an OpenID Connect provider. Your application redirects a Ubikap member to it, the member signs in, and your application receives tokens that identify the member and their office.

IssuerDiscovery document
https://auth.external-integration.ubikap.devhttps://auth.external-integration.ubikap.dev/.well-known/openid-configuration

The same document is also served at /.well-known/oauth-authorization-server. Read every endpoint from it rather than hard-coding them.

EndpointPath
Authorization/auth
Token/token
UserInfo/me
JWKS/jwks
End session/session/end
Introspection/token/introspection
Revocation/token/revocation

Dynamic client registration is not available. The authorization and end session endpoints accept GET only.

Ubikap registers your client and sends you:

  • the client_id, and the client_secret, which is shown only once;
  • the redirect_uris you are allowed to use: HTTPS, without fragment (http://localhost is accepted outside production only);
  • the scopes your client may request;
  • the grant types: authorization_code, plus refresh_token if you need to act while the user is away.

Authenticate on the token, introspection and revocation endpoints with client_secret_basic (recommended) or client_secret_post.

Only the authorization code flow is available: send response_type=code.

ParameterBehavior
login_hintThe member’s email, pre-filled on the login page. When the browser holds a Ubikap session for another account, the member is asked to sign in again. The member may still sign in with another account than the hint.
prompt=noneAnswers error=login_required when the member has no Ubikap session.
prompt=login, max_ageForce a fresh sign-in. With max_age, the ID token carries auth_time.
acr_valuesAccepted, but no acr claim is returned.

Request objects (request, request_uri) are not supported and answer request_not_supported; neither is the claims parameter.

ScopeClaimsNotes
openidsubRequired.
officeoffice_keyReturned by /me only.
emailemailNo email_verified.
profilegiven_name, family_name, nameNo other profile claim.
offline_access—Issues a refresh token. Requires the refresh_token grant and prompt=consent.

Requesting a scope your client is not allowed returns invalid_scope. The address and phone scopes are not available.

PKCE is required for every client, confidential ones included, and only code_challenge_method=S256 is accepted. A request without code_challenge, or with plain, is rejected with invalid_request.

ID tokens are signed with ES512 (ECDSA on P-521, JWK kty: "EC"). Configure your client library to expect ES512: many default to RS256 and would reject the token.

  • Select the verification key in /jwks by the token’s kid. The JWKS may publish keys for other algorithms: ignore them.
  • Cache the JWKS, and fetch it again when you meet an unknown kid.
  • After a key rotation, the retired key stays published for 24 hours, much longer than an ID token lives (1 hour).

Access tokens are opaque: do not try to decode them. Use /me, or /token/introspection, to learn about them.

ScopeLimit
Any endpoint100 requests per minute per IP
/token, /token/introspection, /token/revocation600 requests per minute per IP

Above the limit, the provider answers 429 with RateLimit and RateLimit-Policy headers. A user account is locked for 15 minutes after 10 failed passwords.

  • Errors met in the browser (a sign-in left open for more than an hour, a rejected authorization request) end on the Ubikap SSO error page. Only your application can start a new authorization.
  • When the member refuses the consent, your redirect_uri receives error=access_denied.
  • The token endpoint answers standard OAuth 2.0 JSON errors: invalid_grant, invalid_scope, invalid_client, invalid_request.