Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
refactor: suggestion to inject selectedCredentials in initializeAutho…
Browse files Browse the repository at this point in the history
…rization of wallet provider
  • Loading branch information
severinstampler committed Nov 22, 2023
1 parent a3bb7b1 commit 52e013b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/id/walt/service/SSIKit2WalletService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class SSIKit2WalletService(accountId: UUID, walletId: UUID) : WalletService(acco

println("Resolved presentation definition: ${presentationSession.authorizationRequest!!.presentationDefinition!!.toJSONString()}")

val tokenResponse = credentialWallet.processImplicitFlowAuthorization(presentationSession.authorizationRequest!!)
val tokenResponse = credentialWallet.processTokenRequest(TokenRequest(GrantType.implicit, clientId = presentationSession.authorizationRequest.clientId))
val resp = ktorClient.submitForm(presentationSession.authorizationRequest!!.responseUri!!,
parameters {
tokenResponse.toHttpParameters().forEach { entry ->
Expand Down

0 comments on commit 52e013b

Please sign in to comment.