Generic OIDC
The Generic OIDC template is for any application that can sign users in with an OpenID Connect provider (authorization code flow) and has no template of its own. OkYouIn is the provider; the application is the relying party. The protocol details — endpoints, tokens, key rotation, logout semantics — are in OpenID Connect.
Verified on
Section titled “Verified on”| Test | Version | Modes | Result |
|---|---|---|---|
OpenID Foundation conformance suite, plan Basic OP (client_secret_basic and client_secret_post) | 5.3.4 | password | No failures; 5 warnings, all by design (below) |
| OpenID Foundation conformance suite, plan Config OP | 5.3.4 | password | Passed |
The warnings are deliberate behaviour:
- scope claims are sent in the
id_tokenas well as from userinfo; email_verifiedis not sent (OkYouIn does not verify e-mail addresses);- no
acrclaim —amrtells whether MFA happened; - the
claimsrequest parameter is not supported.
(given_name and family_name, which the first run warned about, are sent since.)
What OkYouIn offers a relying party
Section titled “What OkYouIn offers a relying party”| Item | Value |
|---|---|
| Discovery URL | https://mfa.example.com/oidc/.well-known/openid-configuration |
| Issuer | https://mfa.example.com/oidc |
| Flow | authorization code (response_type=code) |
| Client authentication | client_secret_basic, client_secret_post, or none (public client with PKCE) |
| PKCE | S256 only; required for a public client |
| Scopes | openid, profile, email, groups |
| Claims | preferred_username, name, given_name, family_name (profile); email when the user has one (email); groups (groups) |
| Token signing | RS256 |
| Logout | RP-initiated, at the end-session URL |
Before you start
Section titled “Before you start”- The application must be served over HTTPS. OkYouIn accepts only
httpsredirect URIs —httponly forlocalhost,127.0.0.1and[::1]. - OkYouIn’s public URL (Settings ▸ General) must be an
https://address: without it there is no issuer and every/oidc/endpoint answers 503. - Create the application in Access ▸ Applications ▸ Add application ▸ Generic OIDC:
- Client type — Confidential (a server-side application that keeps the client secret) or Public (a browser or mobile application that cannot keep a secret; it must use PKCE).
- Redirect URIs — one per line, exactly as the application sends them; no wildcards.
- Post-logout redirect URIs — where the application may send the browser after signing out of OkYouIn; empty means OkYouIn’s “Signed out” page.
- Session lifetime (hours) — how long one MFA serves this application.
Configure
Section titled “Configure”-
In the application, add an OpenID Connect provider.
-
Point it at OkYouIn: the discovery URL above (or the endpoints by hand:
/oidc/authorize,/oidc/token,/oidc/userinfo,/oidc/jwks,/oidc/end_sessionunderhttps://mfa.example.com), the Client ID and Client secret from the Connect tab, and the scopesopenid profile email groups. -
Match the callback. The application’s callback must equal one of the Redirect URIs exactly.
-
Sign-out (recommended). Point the application’s logout to the end-session URL with
id_token_hintand apost_logout_redirect_urifrom the list. Without anid_token_hintOkYouIn asks “Sign out?” first. -
Allow the application in the policy and sign in with a test user.
Extra claims from application rules
Section titled “Extra claims from application rules”On the application’s Rules tab, a rule can add claims — for example role=Admin for one
group. Rule claims are added to every id_token and userinfo answer, whatever scopes the client
asks for. Protocol and standard claims, groups and names starting with okyouin: are reserved.
Sign-out and revoke
Section titled “Sign-out and revoke”- An end-session request ends the OkYouIn session and the tokens it issued. The application’s own session is the application’s business: OkYouIn does not notify other applications (no front-channel or back-channel logout).
- Revoking a session in Logging ▸ SSO sessions has the same reach: the next sign-in asks for the password, but applications that are already signed in stay signed in until their own session ends.
Verify
Section titled “Verify”- Sign in through the application with a test user: OkYouIn’s sign-in page asks for the password and the second factor, then returns to the application.
- Logging ▸ SSO sign-in log shows each step; refused requests carry a reason such as “Redirect URI not registered”, “PKCE required” or “Wrong client secret”.
Troubleshooting
Section titled “Troubleshooting”| SSO sign-in log reason | Fix |
|---|---|
| Redirect URI not registered | Add the exact callback URL to Redirect URIs. |
| PKCE required | A public client must send a code_challenge (S256). |
| Wrong client secret / Invalid client authentication | Copy the secret again from the Connect tab; send it either as Basic auth or in the body, not both. |
| Invalid scope (no openid) | Add openid to the requested scopes. |
| Post-logout redirect URI not registered | Add the URL to Post-logout redirect URIs. |
| HTTPS required | The application or a proxy reached OkYouIn over plain HTTP. |