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

Bug in ResolvedRequestObject.OpenId4VPAuthorization.toSessionTranscript() - DirectPost response mode fails on ClassCastException #91

Open
filip-hladky opened this issue Oct 7, 2024 · 0 comments

Comments

@filip-hladky
Copy link

Hi,
in our testing during Hackathons and futher we are encountering bug if we want to use response mode "direct_post".
It fails in Openid4vpManager on class cast to DirectPostJwt.

Expected behavior is either:

  • DirectPost is listed as unsupported option and is not accepted
  • or DirectPost is supported and request is properly processed by Wallet.

E FATAL EXCEPTION: DefaultDispatcher-worker-9 Process: eu.europa.ec.euidi, PID: 6657 java.lang.ClassCastException: eu.europa.ec.eudi.openid4vp.ResponseMode$DirectPost cannot be cast to eu.europa.ec.eudi.openid4vp.ResponseMode$DirectPostJwt at eu.europa.ec.eudi.wallet.transfer.openid4vp.OpenId4vpManager.toSessionTranscript(OpenId4vpManager.kt:383) at eu.europa.ec.eudi.wallet.transfer.openid4vp.OpenId4vpManager.access$toSessionTranscript(OpenId4vpManager.kt:141) at eu.europa.ec.eudi.wallet.transfer.openid4vp.OpenId4vpManager$resolveRequestUri$1.invokeSuspend(OpenId4vpManager.kt:216) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant