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:
| Stage | Host | Serves |
|---|---|---|
| Before the move | <your-instance>.api.verifiedorchestration.com | OIDC authority, discovery, JWKS, token and sign-in pages, plus the GraphQL API and Composer sign-in |
| After the move | api.<your-instance>.verifiedorchestration.com | The 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.
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.
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:
- OpenID Connect provider details:
- Authority URL
- Discovery URL
- A live status indicator showing whether the OIDC provider is running
- List of authentication clients
- List of resources
Create an authentication clientβ
Each application that requires authentication needs an authentication client.
- Navigate to the Composer authentication page.
- Click the Add button above the client list.
- Type a Name for the client. This name is shown to users when they sign-in and sign-out.
- Type one or more Redirect URIs the client is allowed to use.
- 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:
| Method | Description |
|---|---|
client_secret_post | The client includes a shared secret in the token request body. This is the default for confidential clients. |
private_key_jwt | The client sends a signed JWT assertion using a registered public key (RFC 7523). |
Public clients use none (no client authentication).
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 Value | Description |
|---|---|
possession | Default ACR indicating possession-based authentication |
inherence | Inherence-based authentication (something you are) |
knowledgeorpossessionorinherence | Any combination of knowledge, possession, or inherence |
knowledgeorinherence | Knowledge or inherence-based authentication |
knowledgeorpossession | Knowledge or possession-based authentication |
possessionorinherence | Possession 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 Value | Description |
|---|---|
vc_authn | Default Verifiable credential authentication method |
pop | Default Proof of possession authentication method |
face | Included 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β
| Parameter | Description |
|---|---|
claims | OIDC 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_type | The type of credential to be presented. Note: If a single type is configured with the client, it need not be specified. |
vc_facecheck | Whether 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_issuer | The 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_sub | The 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_name | The 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_operator | The 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_value | A 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 sameidentityId. - 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.
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β
- Navigate to the Composer authentication page.
- Click the Add button above the resource list.
- Type a Name for the resource.
- Type the Redirect indicator URI.
- Type one or more Scopes to use for resource authorization.
Configure client resource accessβ
- Navigate to the Composer authentication page.
- Click the Details button for the client you want to configure.
- Click the Add resource button.
- Select the Resource you want to add.
- Select the Scopes that this client can request.
- Click Add.
Request resource accessβ
- When authenticating, specify the
resourceparameter with the Resource indicator URI. - Specify one or more resource scopes in the
scopeparameter. - The client will receive an access token with the requested scopes and the audience claim
audset 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):
- Predefined claims and scopes are based on standard credential presentation data (see definition below).
- Configurable claims and scopes are based on:
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:
| Scope | Description |
|---|---|
vc_info | Standard verifiable credential info |
vc_presented_attributes | Claim values from the credential presentation |
vc_vo_presentation | VO presentation details |
vc_vo_identity | VO identity details |
* 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:
Predefined claimsβ
The following table describes the predefined claims and the scope required to access them:
| Claim | Scope | Description |
|---|---|---|
sub | openid | The 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. |
name | profile | The VO identity name, or the presented credential's name claim when no identity is resolved. |
vc_issuer | vc_info | The issuer DID of the verifiable credential. |
vc_type | vc_info | Array: the type(s) of the verifiable credential. |
vc_revocation_status | vc_info | The revocation status of the verifiable credential, either VALID or REVOKED. |
vc_presented_attributes | vc_presented_attributes | All claims from the verifiable credential presentation as a single object. |
vc_vo_presentation_id | vc_vo_presentation | The VO presentation ID. |
vc_vo_issuance_id | vc_vo_presentation | The VO issuance ID. |
vc_vo_credential_supports_facecheck | vc_vo_presentation | The presented credential has a photo claim and the VO instance supports face check. |
vc_vo_facecheck_match_confidence_score | vc_vo_presentation | The confidence score of the face check match, when available. |
vc_vo_identity_id | vc_vo_identity | The VO identity ID. Useful for referencing the identity reference in the VO platform. |
vc_vo_identity_issuer | vc_vo_identity | The identity issuer value. Useful for referencing the source identity store. |
vc_vo_identity_identifier | vc_vo_identity | The 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:
- Navigate to the Composer claim mappings page.
- Create one or more claim mappings, specifying the scope, claim name and the source claim from the verifiable credential.
- Optionally specify credential types that the mapping applies to, or leave it empty to apply to all credential types.
- Navigate to the Composer authentication clients page.
- 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β
- Navigate to the Composer authentication page.
- Select the client you want to customize and click the Details button.
- Click the Edit button.
- Choose a Background Color and upload a Background Image.
- 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.
| Property | Guideline |
|---|---|
| Resolution | 1920Γ1080 (16:9) |
| File Format | JPEG or PNG |
| File Size | β€ 500 KB |
| Aspect Ratio | Maintain a 16:9 aspect ratio for best fit. |
| Content Position | Keep critical content centered to avoid cropping. |
| Fallback Color | Ensure 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.