Skip to main content

Authentication

Your VO instance includes an OpenID Connect (OIDC) authentication provider, allowing applications to use credential presentation for authentication.

This feature supports:

  • Administrative control over authentication clients:
    • What types of credentials can be presented
    • Use of partner credentials for authentication
    • Use of face check for biometric authentication
    • Whether holders can sign in with a passkey, while passkeys are enabled for the instance. A passkey login trusts the holder's VO identity rather than a presented credential, so it cannot be combined with face check or a claim constraint. Partner and credential type restrictions still apply to the identity: a passkey is accepted only when the partner that established the identity is permitted for the client and, where credential types are restricted, the identity holds a valid credential of a permitted type (or its partner issues one). A credential's type is read from its contract at sign-in, so changing a contract's credential types also changes which existing holders can sign in with a passkey. A passkey set up by someone who signed in with a partner credential persists: later passkey sign-ins cannot check that the original partner credential is still valid or has not been revoked
  • Dynamic control over authentication within applications:
    • What partner credentials can be presented
    • What credential types can be presented
    • Whether face check is required for biometric authentication
    • Arbitrary constraints on claims, e.g. limiting authentication to a specific identity
  • Configuration of resources to protect access to backend services e.g. APIs:
    • Define resources with scopes
    • Configuration of client access to resources

Service addresses​

Your instance serves the OIDC provider and the GraphQL API from the same hostname. That hostname changes when your instance moves to service-first addressing:

StageHostServes
Before the move<your-instance>.api.verifiedorchestration.comOIDC authority, discovery, JWKS, token and sign-in pages, plus the GraphQL API and Composer sign-in
After the moveapi.<your-instance>.verifiedorchestration.comThe same set of endpoints, on the new address

Both names remain valid token audiences, so a resource value that already works keeps working across the move. During the migration window both hosts serve the OIDC provider, so you can repoint your client on your own schedule. Once the move is complete, only the service-first host issues tokens. New instances start with the move already complete.

An instance can also be given a sign-in hostname on your own domain (for example vclogin.example.com), so users never appear to leave your site. Once the move is complete that hostname becomes the advertised authority, serving discovery, JWKS, token and the sign-in pages; the service-first host stays valid alongside it. Holder-facing Concierge links can move to your domain in the same way. Both are arranged with VO at deployment time.

tip

Always take the authority URL from the Composer authentication page rather than deriving it from your API URL. The page always shows the value that is active for your instance right now, including during the migration window.

note

An earlier release advertised a separate identity host, idp.<your-instance>.verifiedorchestration.com. It is no longer in use and does not serve the OIDC provider. If you configured it, move your client to the authority shown on the Composer authentication page.

Administration of clients and resources​

To administer authentication, you must be granted access to user role VerifiableCredential.OidcAdmin.

The Composer authentication page displays the:

  1. OpenID Connect provider details:
    • Authority URL
    • Discovery URL
    • A live status indicator showing whether the OIDC provider is running
  2. List of authentication clients
  3. List of resources

Create an authentication client​

Each application that requires authentication needs an authentication client.

  1. Navigate to the Composer authentication page.
  2. Click the Add button above the client list.
  3. Type a Name for the client. This name is shown to users when they sign-in and sign-out.
  4. Type one or more Redirect URIs the client is allowed to use.
  5. Type one or more Log out URIs the client is allowed to use.

Demo πŸŽ₯​

Client authentication methods​

Confidential clients must authenticate at the token endpoint. The VO OIDC provider supports two authentication methods:

MethodDescription
client_secret_postThe client includes a shared secret in the token request body. This is the default for confidential clients.
private_key_jwtThe client sends a signed JWT assertion using a registered public key (RFC 7523).

Public clients use none (no client authentication).

note

A confidential client must use either client_secret_post or private_key_jwt, not both. The authentication method is mutually exclusive.

Private key JWT authentication​

Private key JWT (private_key_jwt) allows a client to authenticate using a signed JWT assertion instead of a shared secret. This is recommended for machine-to-machine integrations where the client can securely manage private keys.

Supported algorithms​

The following signing algorithms are supported for client assertion JWTs:

  • RSA: RS256, RS384, RS512, PS256, PS384, PS512
  • EC: ES256, ES384, ES512

Registering public keys​

When creating or editing a confidential client with private_key_jwt authentication, you must provide the client's public keys using one of (mutually exclusive):

  • Client JWKS β€” a JSON Web Key Set (JWKS) document pasted directly into the configuration. This supports multiple keys for key rotation.
  • Client JWKS URI β€” a URL pointing to a hosted JWKS document. The OIDC provider will fetch and cache the keys.

You cannot provide both JWKS and JWKS URI at the same time.

Key rotation​

Multiple keys can be registered simultaneously to support seamless key rotation. Include both the current and new public keys in the JWKS, then remove the old key after the transition period.

Example client assertion​

The client assertion JWT must include the following claims:

{
"iss": "<client_id>",
"sub": "<client_id>",
"aud": "<token_endpoint_url>",
"jti": "<unique_identifier>",
"exp": "<expiration_time>",
"iat": "<issued_at_time>"
}

The JWT must be signed with a private key corresponding to one of the registered public keys.

Add authentication to an application​

Exactly how you add authentication to an application depends on the application's technology stack and which authentication library you choose to use.

The VO OIDC provider currently only supports the Authorization Code Grant with Proof Key for Code Exchange (PKCE) flow for web clients.

The authentication client view page contains code samples for both front-end authentication using react-oidc-context and server-side authentication using openid-client.

You can copy the sample code and paste it into your application. Any library supporting the PKCE flow should work with VO authentication. Choose the most appropriate library for your stack and reference the code samples for example configuration.

Demo πŸŽ₯​

This demo shows how to add authentication to a React application using the react-oidc-context library.

Server-side authentication​

Server side authentication implementations vary wildly depending on the technology stack. The server-side authentication code sample can be pasted straight into an Express.js application, for a basic working example of server-side PKCE.

Supported Authentication Context Class References (ACRs)​

The VO OIDC provider supports the following Authentication Context Class References (ACRs):

ACR ValueDescription
possessionDefault ACR indicating possession-based authentication
inherenceInherence-based authentication (something you are)
knowledgeorpossessionorinherenceAny combination of knowledge, possession, or inherence
knowledgeorinherenceKnowledge or inherence-based authentication
knowledgeorpossessionKnowledge or possession-based authentication
possessionorinherencePossession or inherence-based authentication

Requesting specific ACRs​

You can request specific Authentication Context Class References (ACRs) using the OIDC standard claims parameter.

Example requesting a specific ACR:

const claims = {
id_token: {
acr: {
value: 'inherence',
},
},
}

Supported Authentication Method References (AMRs)​

The VO OIDC provider supports the following Authentication Method References (AMRs):

AMR ValueDescription
vc_authnDefault Verifiable credential authentication method
popDefault Proof of possession authentication method
faceIncluded if the presentation involved the Face check biometric authentication method

Requesting specific AMRs​

You can request specific Authentication Method References (AMRs) using the OIDC standard claims parameter.

Example requesting a specific AMR:

const claims = {
id_token: {
amr: {
values: ['pop', 'face'],
},
},
}

export const oidcConfig: OidcClientSettings = {
// ... other settings
extraQueryParams: {
claims: JSON.stringify(claims),
},
}

Control authentication within an application​

The VO OIDC provider allows you to control authentication behaviour within an application by providing additional parameters.

The following parameter configuration forces the user to present a credential of type passport from a partner issuer, requires a biometric face check and constrains the presentation to a single passport number:

const signInWithPassport = useCallback(
() =>
signinRedirect({
redirect_uri: window.location.origin + window.location.pathname,
extraQueryParams: {
vc_type: 'passport',
vc_issuer: 'did:web:example.country.gov',
vc_unique_claim_for_sub: 'passportNumber',
vc_facecheck: true,
vc_constraint_name: 'passportNumber',
vc_constraint_operator: 'values',
vc_constraint_value: '123456789',
},
}),
[signinRedirect],

Authentication control parameters​

ParameterDescription
claimsOIDC standard claims parameter for requesting specific ACRs or AMRs. Use JSON format with id_token.acr.values for ACRs and id_token.amr.values for AMRs.

Example: {"id_token":{"acr":{"values":["inherence"]},"amr":{"values":["face"]}}}

Import Note: The VO OIDC implementation does not support requesting claims via the claims parameter. Only scopes can be used to request claims.
vc_typeThe type of credential to be presented.

Note: If a single type is configured with the client, it need not be specified.
vc_facecheckWhether face check is required for biometric authentication. Requesting an AMR value of face via the claims parameter will force a face check during presentation.

Note: If forced via client configuration, it need not be specified.
vc_issuerThe partner issuer DID (authenticating using partner credentials).

If omitted, credentials from the platform or from any partner configured with the client for the requested type are accepted.

Note: a credential from an issuer the client doesn't trust for the requested type is refused. See Signing in with partner credentials.
vc_unique_claim_for_subThe claim from which a unique identifier can be derived when authenticating using partner credentials.

Note: Only required for a partner credential without an issuance ID, when the partner has no identity claim set and no values are configured with the client, or one specific claim needs to be used.
vc_constraint_nameThe claim key to match when applying a constraint value as specified by vc_constraint_operator and vc_constraint_value.

Leading and trailing whitespace is trimmed.
vc_constraint_operatorThe constraint operator which specifies how the constraint is applied, either one of:

contains: The constraint evaluates to true if the claim value contains the specified value.

startsWith: The constraint evaluates to true if the claim value starts with the specified value.

values: Set of values that should match the claim value. If you specify multiple values, like red,green,blue it's a match if the claim value in the credential has any of the values in the collection.
vc_constraint_valueA single constraint value, e.g. 123.

When using values operator, several values can be specified using a comma to separate, e.g. 123,456,789 to specify a match on either 123, 456, or 789, but not 999.

The value oidc:login_hint will dynamically resolve at runtime and be substituted in place of the original value.

Constraint values are matched exactly, ignoring case but not whitespace, so leading and trailing whitespace is trimmed - from the value, from each comma-separated entry when using the values operator, and from the resolved oidc:login_hint value. A request whose constraint value is empty once trimmed is rejected.

Demo πŸŽ₯​

This demo shows use of various authentication control parameters.

Signing in with partner credentials​

A partner is another issuer whose credentials your instance trusts, such as another VO instance. A client accepts a partner's credentials when the partner is listed on the client (or the client allows any partner) and the partner is configured for the presented credential type. A credential from any other issuer is refused, even if the wallet presents it.

When an application doesn't name a credential type, it accepts any credential its partners are configured to issue. A presented credential of a type the partner isn't configured for is still refused.

Concierge​

Concierge accepts only your instance's credentials until Partner sign-in to Concierge is turned on under Instance configuration in Composer. When it's on, Concierge accepts credentials from every partner that has an identity claim set (see below). Concierge needs a VO identity for every sign-in, so partners without an identity claim are never accepted. A credential of your own instance is refused too when it can't be matched to an identity, such as one issued by another environment that shares your authority: the sign-in does not complete, instead of leaving the person signed in but unable to use Concierge.

Linking partner sign-ins to an identity​

Set an identity claim on the partner to link people who sign in with its credentials to a VO identity. The identity claim is the credential claim that identifies a person to that partner:

  • For a partner that is a VO instance, use identityId. Every credential that instance issues to the same person carries the same identityId.
  • For any other partner, use a claim that never changes for a person, such as an employee number.

On a person's first sign-in, VO creates an identity and links it to the claim value in an identity store for that partner. Later sign-ins with the same claim value, including after the partner re-issues the credential, resolve to the same identity. The token then carries vc_vo_identity_id, so the person can use Concierge and passkeys.

  • A claim value is only ever looked up in its own partner's identity store, so the same value from two partners belongs to two different people.
  • VO never matches a partner's people to existing identities by email or any other claim. If one person ends up with two identities, merge them (see Merging identities).
  • When the identity claim is set but the credential doesn't carry it, the sign-in fails.
  • Once anyone has signed in through the identity claim, it can't be changed or cleared: their links are keyed on its values, so a different claim would give each of them a new identity.
  • Without an identity claim, partner sign-ins still succeed, but no identity is resolved and the subject identifier is the only stable reference.
Choose a stable claim

An email address or phone number can change, or later belong to someone else. Composer warns when the identity claim looks like one.

Protect resources​

Resources can be defined with scopes to control access from clients. This provides the ability to protect access to backend services, e.g. APIs.

Add a resource​

  1. Navigate to the Composer authentication page.
  2. Click the Add button above the resource list.
  3. Type a Name for the resource.
  4. Type the Redirect indicator URI.
  5. Type one or more Scopes to use for resource authorization.

Configure client resource access​

  1. Navigate to the Composer authentication page.
  2. Click the Details button for the client you want to configure.
  3. Click the Add resource button.
  4. Select the Resource you want to add.
  5. Select the Scopes that this client can request.
  6. Click Add.

Request resource access​

  1. When authenticating, specify the resource parameter with the Resource indicator URI.
  2. Specify one or more resource scopes in the scope parameter.
  3. The client will receive an access token with the requested scopes and the audience claim aud set to the resource indicator. This access token can be used to access the resource (e.g. API).
const settings: OidcClientSettings = {
client_id: '2f93583c-dd81-40b5-8c86-37d5c090f6e1',
authority: 'https://demo.api.verifiedorchestration.com/oidc',
redirect_uri: 'http://localhost:5173/',
post_logout_redirect_uri: 'http://localhost:5173/',
resource: 'https://example.com/api',
scope: 'openid profile offline_access vc_info vc_presented_attributes vc_vo_presentation vc_vo_identity api:read api:write',
}

Demo πŸŽ₯​

This demo shows how to set up resources, configure access for a client and obtain an access token for the resource.

Scopes and claims​

Claims are organised by scopes, which are used to request specific information about the credential presentation.

Claims and scopes are both predefined (static) and configurable (dynamic):

The complete list of available scopes and claims is shown in the OpenID discovery document at /oidc/.well-known/openid-configuration.

The VO OIDC provider supports standard OIDC scopes: openid, profile and offline_access*.

Additionally, credential info is available via the following scopes:

ScopeDescription
vc_infoStandard verifiable credential info
vc_presented_attributesClaim values from the credential presentation
vc_vo_presentationVO presentation details
vc_vo_identityVO identity details
note

* The offline_access scope is automatically included, granted, and does not require consent.

Claims​

The VO OIDC provider supports both predefined (static) and mapped (configurable) claims:

  1. Predefined claims
  2. Mapped claims

Predefined claims​

The following table describes the predefined claims and the scope required to access them:

ClaimScopeDescription
subopenidThe subject identifier, derived from the VO issuance ID. It is different for each client.

For partner credential presentations, it is derived from the partner and the first of:
- the credential's issuance ID
- the claim set as the partner's identity claim
- the value of the vc_unique_claim_for_sub parameter
- the first matching Unique claim for subject identifier configured on the client

Because the partner is part of the value, two partners never produce the same subject.
nameprofileThe VO identity name, or the presented credential's name claim when no identity is resolved.
vc_issuervc_infoThe issuer DID of the verifiable credential.
vc_typevc_infoArray: the type(s) of the verifiable credential.
vc_revocation_statusvc_infoThe revocation status of the verifiable credential, either VALID or REVOKED.
vc_presented_attributesvc_presented_attributesAll claims from the verifiable credential presentation as a single object.
vc_vo_presentation_idvc_vo_presentationThe VO presentation ID.
vc_vo_issuance_idvc_vo_presentationThe VO issuance ID.
vc_vo_credential_supports_facecheckvc_vo_presentationThe presented credential has a photo claim and the VO instance supports face check.
vc_vo_facecheck_match_confidence_scorevc_vo_presentationThe confidence score of the face check match, when available.
vc_vo_identity_idvc_vo_identityThe VO identity ID. Useful for referencing the identity reference in the VO platform.
vc_vo_identity_issuervc_vo_identityThe identity issuer value. Useful for referencing the source identity store.
vc_vo_identity_identifiervc_vo_identityThe identity identifier value. Useful for referencing the identity in the source identity store.

Mapped claims​

If you need verifiable credential presentation claim values returned as individual top-level OIDC claims, instead of nested within the single claim vc_presented_attributes value, you can define and apply OIDC claim mapping:

  1. Navigate to the Composer claim mappings page.
  2. Create one or more claim mappings, specifying the scope, claim name and the source claim from the verifiable credential.
  3. Optionally specify credential types that the mapping applies to, or leave it empty to apply to all credential types.
  4. Navigate to the Composer authentication clients page.
  5. Edit your authentication client and select the claim mappings you want to apply to the client.

Once you have defined the claim mappings and applied them to clients, the scopes and claims will be shown in the OpenID discovery document at /oidc/.well-known/openid-configuration.

Demo πŸŽ₯​

This demo shows how to create and use a set of claim mappings.

Customize and brand your authentication client​

You have the option to customize the appearance of your authentication client to align with your application’s branding by configuring a background color or adding a background image for a more personalized user experience.

Customization options​

  • Background Color: Set a color to match your application's theme using a color picker or hexadecimal code.
  • Background Image: Upload a background image to add a personal touch or a brand-specific aesthetic.

How to customize​

  1. Navigate to the Composer authentication page.
  2. Select the client you want to customize and click the Details button.
  3. Click the Edit button.
  4. Choose a Background Color and upload a Background Image.
  5. Save the changes.

Customization guidelines​

To ensure a seamless and professional appearance when customizing your authentication client, follow these guidelines for configuring background images and colors.

PropertyGuideline
Resolution1920Γ—1080 (16:9)
File FormatJPEG or PNG
File Size≀ 500 KB
Aspect RatioMaintain a 16:9 aspect ratio for best fit.
Content PositionKeep critical content centered to avoid cropping.
Fallback ColorEnsure the background color matches your brand palette to maintain a consistent visual identity.

Recommendations​

  • Background Image: Use high-resolution images with a 16:9 aspect ratio to ensure the image displays properly across different screen sizes.
  • Safe Margins: Keep important content, such as logos or text, away from the edges to prevent it from being cropped on various devices.
  • Fallback Color: Choose a fallback background color that complements your background image.