Endpoints, scopes, errors

Technical reference

Endpoints, scopes and claims, error codes and limits of the OpenID Connect provider.

1. Endpoints

#
Address Method Authentication Purpose
https://orneos.eu/.well-known/openid-configuration GET None OpenID Connect discovery document.
https://login.orneos.eu/oauth/authorize GET User’s Orneos session Sign-in and consent.
https://orneos.eu/oauth/token POST Client secret (confidential) or client_id only (public) Code exchange, token refresh.
https://orneos.eu/oauth/userinfo GET Bearer <access_token> Profile for the granted scopes.
https://orneos.eu/oauth/revoke POST Same as /oauth/token Revokes an access token or a refresh token (RFC 7009).
https://orneos.eu/oauth/jwks GET None RS256 public keys to verify tokens.
https://login.orneos.eu/oauth/logout GET User’s Orneos session Sign-out, then back to post_logout_redirect_uri.

2. Scopes and claims

#

Orneos applies GDPR data minimization: you only receive the information of the scopes the user accepted. No other scope exists for third-party applications.

Scope Claims Description
openid (required) sub (+ in the ID Token: iss, aud, exp, iat, auth_time, sid, nonce) Orneos username, stable forever.
profile name, preferred_username, locale, picture Display name, username, language (fr, en or de) and profile photo (absent if the user has none).
email email, email_verified Account email address (always verified).

3. Error codes

#

If the client_id is unknown or the redirect_uri does not exactly match a registered address, Orneos does not redirect: it shows “Invalid client or redirect URI.”. Other authorization errors come back to your redirect_uri (?error=…&state=…); server call errors are JSON ({"error": "…"}).

Code Cause What to do
invalid_request Missing or invalid PKCE (no code_challenge, method other than S256). Send a 43 to 128 character code_challenge with code_challenge_method=S256.
invalid_scope openid missing, or unknown scope. Stick to openid, profile and email.
unsupported_response_type response_type other than code. Use response_type=code.
access_denied The user declined, the application is suspended or rejected, or it reached its user cap while unverified. Explain to the user what happened; check the application status in the console.
login_required, consent_required prompt=none while the user is not signed in, or has not consented yet. Retry the request without prompt=none.
invalid_client (401) Unknown client_id, wrong secret, secret sent by a public client, or suspended application. Check your credentials in the console; rotate the secret if needed.
invalid_grant Code expired (over 60 s), already used, different redirect_uri, wrong code_verifier, or refresh token expired or revoked. Exchange the code as soon as you receive it; if a refresh token is refused, sign the user in again.
unsupported_grant_type grant_type other than authorization_code or refresh_token. Only these two types are accepted.
invalid_token (401) Access token expired, invalid, revoked, or access removed by the user (/oauth/userinfo). Refresh the token with the refresh token.
temporarily_unavailable (429) Too many requests. Wait a minute before retrying.

4. Limits

#
  • 5 applications per account, 10 redirect URIs per application.
  • While an application is unverified: at most 10 users besides its owner. The cap disappears after verification.
  • /oauth/token: 60 requests per minute per IP address, 180 per minute per application.
  • /oauth/authorize and /oauth/userinfo: 120 requests per minute per IP address. /oauth/revoke: 60.
  • Beyond that, the response is 429 (temporarily_unavailable).