commonMain.at.asitplus.wallet.lib.oidvci.OAuth2DataProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vck-openid Show documentation
Show all versions of vck-openid Show documentation
Kotlin Multiplatform library implementing the W3C VC Data Model, with OpenId protocol implementations
The newest version!
package at.asitplus.wallet.lib.oidvci
import at.asitplus.wallet.lib.oidc.AuthenticationRequestParameters
/**
* Interface used in [SimpleAuthorizationService] to actually load user data, converting it into [OidcUserInfo].
*/
interface OAuth2DataProvider {
/**
* Load user information (i.e. authenticate the client) with data sent from [request].
*
* @param request May be null when using pre-authorized code flow (defined in OID4VCI).
*/
suspend fun loadUserInfo(request: AuthenticationRequestParameters? = null): OidcUserInfoExtended?
}