Identify a user with Cleverbase, and read the attributes they consent to share. This is the API for the Identification service. The API is OpenID Connect, so if your stack already speaks OIDC, most of the work is configuration rather than code.
Cleverbase is the OpenID Provider; your application is the Relying Party. The user proves who they are in the Cleverbase app on their phone, and you receive an id_token with the claims they agreed to.
Hosts
| Environment | Host |
|---|---|
| Pre-production | https://connect.acc.cleverbase.com |
| Production | https://connect.cleverbase.com |
What the flow looks like
- Your application redirects the user to
GET /oauth2/authorizewith the scopes for the claims you need. - The user identifies themselves with Cleverbase and consents to the claims. What they see and how far they get is ours; you get no callbacks in between.
- Cleverbase redirects back to your redirection URI with an authorization code.
- Your server exchanges that code at
POST /oauth2/tokenfor anid_tokenand anaccess_token. - Optionally you call
GET /userinfowith the access token for the same claims outside the token.
The standard, and the parts of it that apply
The interface complies with OpenID Connect Core 1.0 incorporating errata set 1, which aligns with RFC 6749 (OAuth 2.0). The relevant OIDC sections are 1, 2, 3.1, 5, 8-10 and 13-17.
Two things are worth knowing before you design your screens: a user may consent to a subset of what you ask for unless you marked a claim essential, and a claim that cannot be shared is simply absent from the response rather than empty. Both are in Scopes and claims.