Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credential Issuance StatusCallBackUri, How to know the difference between the hook for QR scan and accept? #853

Open
thanachot30 opened this issue Dec 12, 2024 · 1 comment
Labels
question Further information is requested

Comments

@thanachot30
Copy link

Describe the bug

Hi, now try role issuer at https://issuer.portal.walt.id/swagger/index.html# .
I create Credential Issuance openid4vc/jwt/issue and input parameter statusCallbackUri.

And Then
at wallet role scan QR form issuer ,have hook to statusCallbackUri 1 time,
and next wallet accept credential, have hook to statusCallbackUri 1 time
End
!! I checked the data in the object, and it is all the same.
*hook QR https:myHosturl/2q63FSk5yESXXrB8gNiAdy3Zs1p
*hook accept https:myHosturl/2q63D0s5Qm9nPLHVk7TpBu24fHb
yes i think i get ..../$id and If I have the id, can it be used for anything?

Question

How to know the difference between the hook for QR scan and accept?
If I have the id, can it be used for anything?

Thank you.

@thanachot30 thanachot30 added the bug Something isn't working label Dec 12, 2024
@alegomes
Copy link
Contributor

Hi @thanachot30

I'm not sure if I understood your issue.

The data sent to the callback endpoint is something like this:

{
  "id": "529c0f14-c249-43c2-aaff-4f38066f0df4",
  "type": "resolved_credential_offer",
  "data": {
    "credential_issuer": "https://issuer.portal.walt.id",
    "credential_configuration_ids": [
      "OpenBadgeCredential_jwt_vc_json"
    ],
    "grants": {
      "authorization_code": {
        "issuer_state": "529c0f14-c249-43c2-aaff-4f38066f0df4"
      },
      "urn:ietf:params:oauth:grant-type:pre-authorized_code": {
        "pre-authorized_code": "eyJ0eXBlIjoiand0IiwiYWxnIjoiRWREU0EiLCJraWQiOiJFVzhaRDEwSDVHNG1MWG5MZkFJenJtQnZleDdzSkRBc3lzNC1fQnZRdjFnIn0.eyJzdWIiOiI1MjljMGYxNC1jMjQ5LTQzYzItYWFmZi00ZjM4MDY2ZjBkZjQiLCJpc3MiOiJodHRwczovL2lzc3Vlci5wb3J0YWwud2FsdC5pZCIsImF1ZCI6IlRPS0VOIn0.Lo8O1y4oo0hQi2Ju6qKTfZK-rNH1OopgzsgzNR5_0c5f8ML8Slj4RQubvhipdRkXZeaLeZ195mP3TD-bKDReBA"
      }
    }
  }
}

What is this URL https:myHosturl/2q63FSk5yESXXrB8gNiAdy3Zs1p you mentioned?

[]s

@alegomes alegomes added question Further information is requested and removed bug Something isn't working labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants