eu-digital-identity-wallet / eudi-lib-jvm-openid4vci-kt

Implementation of OpenID for Verifiable Credential Issuance protocol (wallet's role) in Kotlin
Apache License 2.0
18 stars 8 forks source link

Add missing check of the state returned by auth. server #207

Closed babisRoutis closed 5 months ago

babisRoutis commented 5 months ago

This PR closes #205

Unfortunately, this PR introduces a small breaking change to the library public facade.

In particular the method authorizeWithAuthorizationCode which was accepting a single parameter (authorizationCode), now will have an additional serverState.

So, wallet after user authorization (on the auth. server side), must provide the authorization_code & the state returned by the server.


 suspend fun AuthorizationRequestPrepared.authorizeWithAuthorizationCode(
        authorizationCode: AuthorizationCode,
        serverState: String,
    ): Result<AuthorizedRequest>