All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.at.asitplus.wallet.lib.oidvci.OAuth2DataProvider.kt Maven / Gradle / Ivy

Go to download

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?
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy