From 9f555093a2afdfe82af8934659d8289f503c32a2 Mon Sep 17 00:00:00 2001 From: Severin Stampler Date: Wed, 22 Nov 2023 16:12:21 +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 1373c63..7150d67 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.processTokenRequest(TokenRequest(GrantType.implicit, clientId = presentationSession.authorizationRequest.clientId)) + val tokenResponse = credentialWallet.processImplicitFlowAuthorization(presentationSession.authorizationRequest!!) val resp = ktorClient.submitForm(presentationSession.authorizationRequest!!.responseUri!!, parameters { tokenResponse.toHttpParameters().forEach { entry ->