Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 2.66 KB

credential_offer.md

File metadata and controls

35 lines (20 loc) · 2.66 KB

Credential Offer

1. Authorization code flow

Endpoint: https://issuer.eudiw.dev/credential_offer (or https://localhost/credential_offer if installed locally)

A form is presented showing the Request Credentials for your EUDI Wallet that can be requested.

image

After choosing the credential(s) and submitting, a QR code and DeepLink is generated:

image

This generated DeepLink contains information about the credentials chosen in the form.

Example:

if the selected options are Personal Identification Data and the Mobile Driver's License in both sd-jwt and mdoc format:

openid-credential-offer://credential_offer?credential_offer=%7B%22credential_issuer%22:%20%22https://issuer.eudiw.dev%22%2C%20%22credential_configuration_ids%22:%20%5B%22eu.europa.ec.eudi.pid_jwt_vc_json%22%2C%20%22eu.europa.ec.eudi.mdl_jwt_vc_json%22%2C%20%22eu.europa.ec.eudi.pid_mdoc%22%2C%20%22eu.europa.ec.eudi.mdl_mdoc%22%5D%2C%20%22grants%22:%20%7B%22authorization_code%22:%20%7B%7D%7D%7D>

2. Pre-Authorized Code Flow

Currently only suporting a loyalty credential through form

Endpoint: https://dev.issuer.eudiw.dev/dynamic/preauth (or https://localhost/dynamic/preauth if installed locally)

Example of generated DeepLink:

openid-credential-offer://?credential_offer=%7B%22credential_issuer%22:%20%22https://issuer.eudiw.dev/%22%2C%20%22credential_configuration_ids%22:%20%5B%22eu.europa.ec.eudi.loyalty_mdoc%22%5D%2C%20%22grants%22:%20%7B%22urn:ietf:params:oauth:grant-type:pre-authorized_code%22:%20%7B%22pre-authorized_code%22:%20%22Z0FBQUFBQm1mWHdPdlR0X0JBTjRXR2EtRVFkZVpKTXFaTW95U29mVElnTkQ1cnphTEg5ajg0YnJTMk1JLUZaUHFlSUxuVDZ1c1hNRnZJQ3YzNUZfaVZuRVZueEotb1ROWkUyOTNGbUk2ZUJBemZXT2k0ZThRZHVTMWo2Z2JUYjJFOGwxQURxMWdYaHZjNFNCNXdkRVpocVlPV3VNSnlsT1g2Vjl2Nk1IOGJ0aWg2T2tMa1Y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