Identity & access

How identity works

One OpenID Connect provider serves every Versified application. Here is what it is, what it issues, and where your responsibility starts.

Versified runs its own OpenID Connect provider inside App Center. It is the only authentication mechanism on the platform: there are no API keys for people, no shared shared-secret sessions, and no service that issues its own user tokens.

Issuer and discovery

Everything hangs off one issuer. Read /.well-known/openid-configuration when your process starts and configure your library from the result — that is how you inherit key rotation and future endpoint changes without a deploy.

GET /.well-known/openid-configuration
PurposeProvider metadata: every endpoint, algorithm and supported scope
GET|POST /auth
PurposeAuthorization endpoint — code flow with a required PKCE challenge
POST /token
PurposeCode exchange, rotating refresh, and client_credentials
GET /jwks
PurposePublic signing keys (RS256). Cache them, refresh on an unknown kid
GET|POST /session/end
PurposeRP-initiated logout
POST /token/revocation
PurposeRFC 7009 token revocation

Paths above are relative to https://apps-api.versified.com.gh/oidc.

Three client profiles

A client's profile is chosen once, at registration, and it is immutable. It decides the grant types, whether PKCE is mandatory and whether a secret exists at all.

public_pkce
Use it forInstalled apps (iOS, Android, desktop)
Grantsauthorization_code + refresh_token
SecretNone
confidential_web
Use it forServer-rendered web applications
Grantsauthorization_code + refresh_token, PKCE required
SecretYes
confidential_service
Use it forBackend-to-backend calls
Grantsclient_credentials only
SecretYes, no redirect URI

A browser-only app is a separate decision

public_pkce is registered as a native application type, and the token endpoint answers no CORS headers, so a page on your own domain cannot exchange or refresh. Choose your integration shape lays out the five architectures, the cost of each, and the three ways forward if your page has to stay browser-only.

What a token proves, and what it does not

A verified access token proves that Versified issued it to a client for one audience, and that it has not expired. It does not prove that the person is still a member of the account named in the request — that is a local check your service must make on every request. App Center does this by resolving membership after verification; Retill and OneKitchen do the same against their own databases.

Never trust a token without checking audience

An appcenter token is not valid on your API and vice versa. Verify the signature, then the issuer, then that aud contains your own audience. A token minted for another application on the platform is a valid signature and the wrong credential.

Where to go next

Something here out of date or unclear?

The platform team answers integration questions directly.

support@versified.com.gh
32 pages in this documentation