kych

OAuth 2.0 API for Swiyu to enable Taler integration of Swiyu for KYC (experimental)
Log | Files | Refs

request_over_18_dcql.json (1408B)


      1 {
      2   "jwt_secured_authorization_request": true,
      3   "response_mode": "direct_post",
      4   "response_type": "vp_token",
      5   "presentation_definition": {
      6     "id": "00000000-0000-0000-0000-000000000000",
      7     "name": "Over 18 Verification",
      8     "purpose": "Verify age is over 18",
      9     "input_descriptors": [
     10       {
     11         "id": "11111111-1111-1111-1111-111111111111",
     12         "format": {
     13           "vc+sd-jwt": {
     14             "sd-jwt_alg_values": [
     15               "ES256"
     16             ],
     17             "kb-jwt_alg_values": [
     18               "ES256"
     19             ]
     20           }
     21         },
     22         "constraints": {
     23           "fields": [
     24             {
     25               "path": [
     26                 "$.vct"
     27               ],
     28               "filter": {
     29                 "type": "string",
     30                 "const": "betaid-sdjwt"
     31               }
     32             },
     33             {
     34               "path": [
     35                 "$.age_over_18"
     36               ]
     37             }
     38           ]
     39         }
     40       }
     41     ]
     42   },
     43   "dcql_query": {
     44     "credentials": [
     45       {
     46         "id": "age_verification_credential",
     47         "format": "dc+sd-jwt",
     48         "meta": {
     49           "vct_values": [
     50             "betaid-sdjwt"
     51           ]
     52         },
     53         "claims": [
     54           {
     55             "path": [
     56               "age_over_18"
     57             ]
     58           }
     59         ],
     60         "require_cryptographic_holder_binding": true
     61       }
     62     ]
     63   },
     64   "configuration_override": {}
     65 }