Credential Offer indicating a grant type

Issue #1734 resolved
Kristina Yasuda created an issue

Issuer gives clear guidance to the wallet which grant flows it wants the wallet to do

  • if the Issuer wants the wallet to do only one of the grant (pre-authorized_code or code), send one of the parameters
  • if the Issuer can do both grants and wants the wallet to choose, put two parameters

Syntax can look like:

{
  “credential_issuer“: “example.com“
  “grant_type”: {“pre-authorized_code“, “code“},
  “pre-authorized_code“: “string“, //mandatory
  “user_pin_required”: true, //optional
  “issuer_state“: “string“ //optional. used to be called op_state
}

or

{
  “credential_issuer“: “example.com“
  “grant_type”: {“code“},
  “issuer_state“: “string“ //optional. used to be called op_state
}

or

{
  “credential_issuer“: “example.com“
  “grant_type”: {“pre-authorized_code“},
  “pre-authorized_code“: “string“, //mandatory
  “user_pin_required”: true //optional
}

a following structure might work but than code object will be empty when issuer_state is not present.

{
  "grant”: {
    “pre-authorized_code“: {
      “pre-authorized_code“: “string“
    },
    “code“: {
    }
}

Comments (5)

  1. Log in to comment