OpenID Connect applications
Configure wallet authentication using your application framework’s existing OpenID Connect client.
Use your application's OIDC client to connect to the Ver.iD platform. Ver.iD handles the wallet request; Yivi is the example wallet. No separate application download is required.
What you need
- An application with an OpenID Connect client for one of the runtimes below.
- A prepared Studio organization and an authentication flow with the wallets and claims your application needs.
- A registered HTTPS callback and private server configuration for the client secret.
Configure Ver.iD
Create an authentication with the wallets and claims your application needs. For the contact example, request email and phone. In Ver.iD Studio → Verify → Authentications → your flow → Redirect URIs, add your application's exact HTTPS callback. Attach an OAUTH secret, select a brand and activate the flow.
Use the flow's client identifier from Configuration and the attached secret's Key (as base64url). Supply them through private server configuration.
Configure the OIDC client
| Setting | Value |
|---|---|
| Issuer | https://ssi.oauth.ver.id/ — retain the trailing slash |
| Discovery | https://ssi.oauth.ver.id/.well-known/openid-configuration |
| Client ID / secret | Your Studio authentication's identifier and secret value |
| Redirect URI | Your exact registered application callback |
| Grant / response type | Authorization Code / code |
| Token endpoint authentication | client_secret_post |
| PKCE | S256 |
| Scopes | openid email phone for this example |
| ID-token signature | ES384, validated against discovered JWKS |
| Claims source | Validated ID token |
Keep the library's issuer, audience, signature, expiry, state and nonce checks enabled. The contact claims are email, phone_number, email_verified and phone_number_verified; verification flags are JSON booleans. Keep tokens and callback query strings out of logs.
Runtime settings
Use the existing client for your runtime; these are the component versions used by the examples:
| Runtime / client | Where to configure it |
|---|---|
| Node.js 22+, openid-client 6.8.8 | Discovery and client configuration: issuer, client metadata, secret and ClientSecretPost |
| Python 3.11+, Authlib 1.9.5 | Authlib Flask client: server_metadata_url, client_id, client_secret; client options scope, token_endpoint_auth_method=client_secret_post, code_challenge_method=S256 |
| Java 21, Spring Boot 4.1.2 | Spring Security OAuth2 Login: provider issuer-uri; registration client-id, client-secret, authorization-grant-type=authorization_code, client-authentication-method=client_secret_post, scope=openid,email,phone |
| ASP.NET Core 10, OIDC handler 10.0.15 | ASP.NET Core OIDC: Authority, ClientId, ClientSecret, ResponseType=code, UsePkce=true, requested scopes and no UserInfo retrieval |
Required runtime options
These options implement the common settings above; the library defaults alone are insufficient:
- Node.js: pass
id_token_signed_response_alg: 'ES384'in client metadata, useClientSecretPost(secret)and discovery options{ execute: [enableNonRepudiationChecks] }to require signature verification. - Python: use
authorize_access_token()to validate the ID token. Authlib's returnedtoken['userinfo']contains parsed ID-token claims; do not replace it with a separate UserInfo request. - Spring: configure
OidcIdTokenDecoderFactory.setJwsAlgorithmResolverforSignatureAlgorithm.ES384. Its JWT type validator must acceptJWTandver-id/ssi/output/openid/v1+JWT(or an omitted type), while retaining the normal issuer, audience, expiry and nonce checks. SetDefaultOAuth2AuthorizationRequestResolver.setAuthorizationRequestCustomizer(OAuth2AuthorizationRequestCustomizers.withPkce())and wire that resolver intooauth2Login. SetOidcUserService.setRetrieveUserInfo(request -> false)and wire that service intooauth2Login. - ASP.NET Core: set
MapInboundClaims=false,SaveTokens=false,GetClaimsFromUserInfoEndpoint=falseandTokenValidationParameters.ValidAlgorithmsto ES384. Retain issuer, audience and lifetime validation. SetCallbackPathto the registered route; preserveissif your account binding reads it from the claims principal.
If admission requires verified contacts, require both contacts and JSON boolean true flags before creating the application session. In Spring, preserve the original types for email_verified and phone_number_verified in the decoder's claim converters. In ASP.NET Core, check ClaimValueTypes.Boolean as well as the value true; a string claim is insufficient.
Register the framework's callback using the Ver.iD Studio settings above. Configure session storage and cookie/key protection using your application's existing deployment settings. Bind accounts using issuer plus sub; do not automatically link accounts by matching email.
Test the login
Start login from your application, approve the request in Yivi and confirm the application establishes its normal session with the selected claims. Sign out and repeat with unchanged wallet details: the same account must return. Cancelling a fresh request must create no session.
Use the Studio authentication test to distinguish flow configuration from application callback errors.
Read account identifiers and continuity before changing clients, scopes or wallet mappings.