OAuth2AuthorizationServer

Used by CredentialIssuer to obtain user data when issuing credentials using OID4VCI.

Inheritors

Properties

Link copied to clipboard
abstract val publicContext: String

Used in several fields in IssuerMetadata, to provide endpoint URLs to clients.

Functions

Link copied to clipboard
abstract suspend fun getUserInfo(accessToken: String): KmmResult<OidcUserInfoExtended>

Get the OidcUserInfoExtended (holding OidcUserInfo) associated with the accessToken, that was created before at the Authorization Server.

Link copied to clipboard
abstract suspend fun provideMetadata(): KmmResult<OAuth2AuthorizationServerMetadata>

Provide necessary OAuth2AuthorizationServerMetadata JSON for a client to be able to authenticate

Link copied to clipboard
abstract suspend fun providePreAuthorizedCode(): String?

Provide a pre-authorized code (for flow defined in OID4VCI), to be used by the Wallet implementation to load credentials.

Link copied to clipboard
abstract suspend fun verifyAndRemoveClientNonce(nonce: String): Boolean