Third-party integrations

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

SettingValue
Issuerhttps://ssi.oauth.ver.id/ — retain the trailing slash
Discoveryhttps://ssi.oauth.ver.id/.well-known/openid-configuration
Client ID / secretYour Studio authentication's identifier and secret value
Redirect URIYour exact registered application callback
Grant / response typeAuthorization Code / code
Token endpoint authenticationclient_secret_post
PKCES256
Scopesopenid email phone for this example
ID-token signatureES384, validated against discovered JWKS
Claims sourceValidated 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 / clientWhere to configure it
Node.js 22+, openid-client 6.8.8Discovery and client configuration: issuer, client metadata, secret and ClientSecretPost
Python 3.11+, Authlib 1.9.5Authlib 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.2Spring 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.15ASP.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, use ClientSecretPost(secret) and discovery options { execute: [enableNonRepudiationChecks] } to require signature verification.
  • Python: use authorize_access_token() to validate the ID token. Authlib's returned token['userinfo'] contains parsed ID-token claims; do not replace it with a separate UserInfo request.
  • Spring: configure OidcIdTokenDecoderFactory.setJwsAlgorithmResolver for SignatureAlgorithm.ES384. Its JWT type validator must accept JWT and ver-id/ssi/output/openid/v1+JWT (or an omitted type), while retaining the normal issuer, audience, expiry and nonce checks. Set DefaultOAuth2AuthorizationRequestResolver.setAuthorizationRequestCustomizer(OAuth2AuthorizationRequestCustomizers.withPkce()) and wire that resolver into oauth2Login. Set OidcUserService.setRetrieveUserInfo(request -> false) and wire that service into oauth2Login.
  • ASP.NET Core: set MapInboundClaims=false, SaveTokens=false, GetClaimsFromUserInfoEndpoint=false and TokenValidationParameters.ValidAlgorithms to ES384. Retain issuer, audience and lifetime validation. Set CallbackPath to the registered route; preserve iss if 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.

On this page