The Orneos OpenID Connect configuration is published at https://orneos.eu/.well-known/openid-configuration. All tokens are signed with RS256; their issuer (iss) is https://orneos.eu.
Pages the user sees (sign-in, consent, sign-out) live on https://login.orneos.eu. Server-to-server calls (tokens, profile, revocation, keys) go to https://orneos.eu.
Client authentication at /oauth/token: client_secret_basic (recommended), client_secret_post, or none for public clients.
Every application, confidential or public, must use PKCE with the S256 method. A request without code_challenge, or using plain, comes back with the invalid_request error.
Generate a random string of 43 to 128 characters (code_verifier), compute its SHA-256 hash encoded as base64url without trailing = (code_challenge), then redirect the user.
response_type=code: required
code_challenge and code_challenge_method=S256: required
scope: openid required, profile and email optional. Any other scope is refused (invalid_scope).
state: random value to check on return (CSRF protection), strongly recommended
nonce (recommended): copied as is into the ID Token, to bind it to your session
prompt (optional): none (silent sign-in, otherwise login_required or consent_required), login (asks for the password again), consent (shows the consent screen again)
Once the user agrees, Orneos returns to your redirect_uri with ?code=…&state=…. The code is single-use and valid for 60 seconds: exchange it right away.
Send a POST to https://orneos.eu/oauth/token with the same redirect_uri and your code_verifier. A confidential client authenticates with HTTP Basic (client_id:client_secret); a public client only sends client_id in the body.
Orneos returns an access_token (1 hour), an id_token (RS256 JWT, 1 hour) and a refresh_token (30 days).
Rotation: each use of a refresh_token returns a new one and invalidates the old one. If an already-used token is presented again (a sign of theft), the whole token chain of that sign-in is revoked.
Validate the ID Token:Check the signature with the keys at https://orneos.eu/oauth/jwks (kid field), then check iss = https://orneos.eu, aud = your client_id, exp and your nonce. OpenID Connect libraries do this for you.
Send the access_token in the Authorization: Bearer <token> header. The response only contains the information of the granted scopes.
sub is the user’s Orneos username: it never changes, use it as the account key on your side. The email address may change.
picture (profile scope) is the public address of the profile photo, 512 × 512 px. It is only present if the user picked a photo, and changes when they replace it: read the profile again at each sign-in rather than keeping it forever.
Revoking a token (RFC 7009): POST https://orneos.eu/oauth/revoke with token=…, authenticating as at /oauth/token. Revoking a refresh token revokes its whole chain. The response is always 200 {}, even for an unknown token.
Signing the user out of Orneos: redirect them to https://login.orneos.eu/oauth/logout with client_id (or id_token_hint), post_logout_redirect_uri (an address registered in the console) and, if needed, state.
Back-channel logout (OpenID Connect Back-Channel Logout 1.0): if you register a back-channel address in the console, Orneos sends it a POST with logout_token (RS256 JWT, typlogout+jwt, sub and sid claims) when the user signs out of Orneos. Check the signature, close the matching session and answer 200 within 5 seconds.
Revoke a token
curl -X POST https://orneos.eu/oauth/revoke \
-u "orn_0123456789abcdef01234567:orns_CLIENT_SECRET" \
-d "token=ornr_YOUR_REFRESH_TOKEN"
Use our official branded button. It comes in two themes: light (white background) and dark (navy background). Pick the one that stands out best on your page. Styles are inlined, so it renders as is without any extra stylesheet.