OAuth2Client
Simple OAuth 2.0 client to authorize the client against an OAuth 2.0 Authorization Server and request tokens.
Can be used in OID4VCI flows, e.g. WalletService.
Constructors
Properties
Used to create AuthenticationRequestParameters, TokenRequestParameters and CredentialRequestProof, typically a URI.
Used to create AuthenticationRequestParameters and TokenRequestParameters.
Set this variable to use JAR (JWT-secured authorization requests, RFC 9101) for PAR (Pushed authorization requests, RFC 9126), as mandated by OpenID4VC HAIP.
Functions
Send the result as parameters to the server at OAuth2AuthorizationServerMetadata.authorizationEndpoint. Use POST if OAuth2AuthorizationServerMetadata.pushedAuthorizationRequestEndpoint is available.
Send the result as parameters to the server at OAuth2AuthorizationServerMetadata.authorizationEndpoint. Use this method if the previous authn request was sent as a pushed authorization request (RFC 9126), and the server has answered with PushedAuthenticationResponseParameters.
Request token with an authorization code, e.g. from createAuthRequest, or pre-auth code.