OAuth2Client
Simple OAuth 2.0 client to authorize the client against an OAuth 2.0 Authorization Server and request tokens.
Builds the request parameters only; OAuth2ProtocolClient builds the HTTP requests from them, including DPoP proofs and attestation-based client authentication.
Can be used in OID4VCI flows, e.g. OpenId4VciClient.
Constructors
Types
Properties
Used to create AuthenticationRequestParameters, TokenRequestParameters and at.asitplus.openid.CredentialRequestProofContainer, typically a URI.
Used to create AuthenticationRequestParameters and TokenRequestParameters.
Set this variable to use JAR (JWT-secured authorization requests, RFC 9101), 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.