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

Commit 52e013b

Browse files
refactor: suggestion to inject selectedCredentials in initializeAuthorization of wallet provider
1 parent a3bb7b1 commit 52e013b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/id/walt/service/SSIKit2WalletService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class SSIKit2WalletService(accountId: UUID, walletId: UUID) : WalletService(acco
193193

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

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

0 commit comments

Comments
 (0)