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

errorRedirectUri not working in Verifier API #290

Open
ChangoBuitrago opened this issue Apr 1, 2024 · 1 comment
Open

errorRedirectUri not working in Verifier API #290

ChangoBuitrago opened this issue Apr 1, 2024 · 1 comment
Labels

Comments

@ChangoBuitrago
Copy link

When you try setting the errorRedirectUri for a verification request, it always end up using the sucessRedirectUri instead.

You can try your own documentation example to reproduce the error:
https://docs.oss.walt.id/verifier/api/vc-oid4vc

curl -X 'POST' \
  'https://verifier.portal.walt.id/openid4vc/verify' \
  -H 'accept: */*' \
  -H 'authorizeBaseUrl: openid4vp://authorize' \
  -H 'responseMode: direct_post' \
  -H 'successRedirectUri: https://example.com/success?id=$id' \
  -H 'errorRedirectUri: https://example.com/error?id=$id' \
  -H 'Content-Type: application/json' \
  -d '{
  "request_credentials": [
    "VerifiableDiploma"
  ]
}'

I assume the issue is in the following function verify in the file https://github.com/walt-id/waltid-identity/blob/main/waltid-verifier-api/src/main/kotlin/id/walt/verifier/oidc/VerificationUseCase.kt

Thank for your help!

dinkar-jain added a commit that referenced this issue Apr 5, 2024
philpotisk added a commit that referenced this issue Apr 5, 2024
Copy link

This issue has been marked as stale.

@github-actions github-actions bot added the Stale label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant