Skip to main content
European CommissionEBSI European Blockchain
Select the Environment you want to work withEnvironment:

Token endpoint

Last updated on
POST 

/conformance/v3/auth-mock/token

The client proceeds with the code flow by calling the Token Endpoint with the required details. The client_assertion JWT must be signed using the client's private key, with the corresponding public key available through the jwks_uri parameter or included in the Client Metadata provided during the pre-registration step.

Request

Body
    oneOf
    grant_type Grant Typerequired

    Possible values: [urn:ietf:params:oauth:grant-type:pre-authorized_code]

    MUST have the value

    urn:ietf:params:oauth:grant-type:pre-authorized_code

    pre-authorized_code Pre-authorized code

    The code representing the authorization to obtain Credentials of a certain type. In WCT v3 Holder wallet tests, the code corresponds to the string concatenation of the last 4 bytes (modulo 10) of the sha256 hash of the user DID. Example: the code corresponding to the DID

    did:key:z2dmzD81cgPx8Vki7JbuuMmFYrWPgYoytykUZ3eyqht1j9KbsDbVZXdb3jzCagESyY4EE2x7Yjx3gNwctoEuRCKKDrdNP3HPFtG8RTvBiYStT5ghBHhHizH2Dy6xQtW3Pd2SecizL9b2jzDCMr7Ka5cRAWZFwvqwAtwTT7xet769y9ERh6
    is "5910".

    user_pin User PINrequired

    OPTIONAL. String value containing a user PIN. This value MUST be present if

    user_pin_required
    was set to
    true
    in the Credential Offer. The string value MUST consist of maximum 8 numeric characters (the numbers 0 - 9). This parameter MUST only be used if the
    grant_type
    is
    urn:ietf:params:oauth:grant-type:pre-authorized_code
    .

Responses

OK

Schema
    access_token JWSrequired

    The access token issued by the Authorisation Server.

    The Access Token MUST be signed by the Authorisation Server.

    id_token JWSrequired

    The ID token issued by the Authorisation Server.

    token_type Token Typerequired

    Possible values: [bearer]

    The access token type provides the client with the information required to successfully utilize the access token to make a protected resource request (along with type-specific attributes).

    expires_in Expires inrequired

    The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.

    Lifetime must be 86400 seconds.

    c_nonce Challenge Noncerequired

    JSON string containing a nonce to be used to create a proof of possession of key material when requesting a Credential (see Section 7.2 of OpenID for VCI). When received, the Wallet MUST use this nonce value for its subsequent credential requests until the Credential Issuer provides a fresh nonce.

    c_nonce_expires_in Challenge Nonce expires inrequired

    The lifetime in seconds of the c_nonce token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated.

Loading...