From 52e013b3c06c0e54d386ffa78dad11045d28972d Mon Sep 17 00:00:00 2001 From: Severin Stampler Date: Wed, 22 Nov 2023 16:10:07 +0100 Subject: [PATCH] refactor: suggestion to inject selectedCredentials in initializeAuthorization of wallet provider --- src/main/kotlin/id/walt/service/SSIKit2WalletService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt b/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt index 7150d67..1373c63 100644 --- a/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt +++ b/src/main/kotlin/id/walt/service/SSIKit2WalletService.kt @@ -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 ->