RemoteOAuth2AuthorizationServerAdapter
Parameters
base URL of the remote Authorization Server
the app's ktor client, i.e. with its engine and logging. The requests are sent with a copy that does not follow redirects, see OAuth2KtorClient for the plugins it must not have.
validates access tokens received in validateAccessToken
implements OAuth 2.0 when exchanging Wallet's token for a fresh access token
authenticates with OAuth 2.0 Attestation-Based Client Authentication at the remote Authorization Server, or null to not use it
verifies the signature of JWT responses of token introspection (RFC 9701) against the keys of the remote Authorization Server; when set, token introspection requests and accepts only JWT responses, when null (the default) plain JSON responses
used to provide DPoP nonces for credential requests, which will be verified by internalTokenVerificationService
CoroutineScope to fetch the authorization server's metadata
Deprecated
Pass the app's HttpClient instead of engine, cookiesStorage and httpClientConfig, which oauth2Client ignored when passed, and configure the OAuth 2.0 client with oauth2Client, clientAttestation and verifyTokenIntrospectionJwt
Parameters
Base URL of the remote Authorization Server.
ktor engine to make requests to the verifier.
Callers are advised to implement a persistent cookie storage, to keep the session at the issuing service alive after receiving the auth code.
Additional configuration for building the HTTP client, e.g., callers may enable logging.
CoroutineScope to fetch the authorization server's metadata.
OAuth 2.0 client to use when exchanging Wallet's token for a fresh access token, make sure to configure it to use the correct OAuth2KtorClient.clientAttestation.
Validates access tokens received in validateAccessToken.
Used to provide DPoP nonces for credential requests, which will be verified by internalTokenVerificationService.