Oidc Siop Wallet
class OidcSiopWallet(holder: Holder, agentPublicKey: CryptoPublicKey, jwsService: JwsService, verifierJwsService: VerifierJwsService = DefaultVerifierJwsService(), clock: Clock = Clock.System, clientId: String = "https://wallet.a-sit.at/")
Combines Verifiable Presentations with OpenId Connect. Implements OIDC for VP (2023-04-21) as well as SIOP V2 (2023-01-01).
The holder creates the Authentication Response, see OidcSiopVerifier for the verifier.
Constructors
Link copied to clipboard
constructor(holder: Holder, agentPublicKey: CryptoPublicKey, jwsService: JwsService, verifierJwsService: VerifierJwsService = DefaultVerifierJwsService(), clock: Clock = Clock.System, clientId: String = "https://wallet.a-sit.at/")
Functions
Link copied to clipboard
suspend fun createAuthnResponse(request: AuthenticationRequestParameters): KmmResult<OidcSiopWallet.AuthenticationResponseResult>
Pass in the deserialized AuthenticationRequestParameters, which were either encoded as query params, or JSON serialized as a JWT Request Object.
Pass in the URL sent by the Verifier (containing the AuthenticationRequestParameters as query parameters), to create AuthenticationResponseParameters that can be sent back to the Verifier, see AuthenticationResponseResult.
Link copied to clipboard
suspend fun createAuthnResponseParams(params: AuthenticationRequestParameters): KmmResult<AuthenticationResponseParameters>
Creates the authentication response from the RP's params