OpenID Connect for Verifiable Presentations
Last updated
Last updated
Dentity provides a way for verifiers to request holders to share their credentials to verify easily and securely using OpenID Connect (OIDC). Specifically in this specification we build and follow OpenID Connect for Verifiable Presentations and W3C Verifiable Credentials.
You need some of the following to get started:
Access to Denity Business site to create OIDC client. If you didn't, contact us to get support.
Have a basic understanding of OpenID Connect (OIDC) and related concepts.
Have created OIDC client.
Create OIDC client in Denity Business site and get the configuration. Configure the OIDC library you use with the parameters below.
Authority URL: https://oidc.dentity.com/oidc/auth
Parameter | Description |
---|---|
After the user successfully verify with their credential you will receive the corresponding sample format below.
vp_token example: Notice that the data below has been changed for brevity.
The response parameter vp_token
is defined as follows:
vp_token
: a parameter that either directly contains a verifiable presentation or a JSON array with multiple verifiable presentations
A vp_token
MUST be provided in the same response as the id_token
of the respective OpenID Connect transaction. Depending on the response/grant type, this can be either the authentication response or the token response.
The vp_token
either contains a single verifiable presentation or an array of verifiable presentations.
When the user verifies successfully. You will get vp_token. Before you start using that data, we recommend you verify it first.
The proof can be verified with:
Libraries that support VC verifications for BBS+ signatures.
Call Dentity's API to verify the proof
Verify the proof: Always verify the proof before making use of its data. You can rely on the return value when verifying to use it for your purposes.
Without verification, the received proof is of no more value than an unsubstantiated claim made by your user.
Currently, there are many libraries/packages that support OIDC client integration for most languages. You can view some of the certified packages from OpenID Connect:
Typescript/Javascript
oidc-client
Golang
OIDC v0.15.7
Java
GKIDP Broker 1.0.0
Python
pyoidc
Ruby
openid_connect
client_id
A unique string that you receive after creating the client to identify the application
redirect_uri
The URL will be redirected after the user has verified successfully
response_type
code
scope
openid
profile