OAuth2
An OAuth2 or OpenID Connect credential: the client's configuration, the sign-in state and, once the user has signed in, the tokens.
Constructors
Types
The way an OAuth2 client authenticates to the token endpoint (RFC 7591 section 2).
The protocol of an OAuth2 credential, OAuth2 or OpenID Connect; both carry the same fields.
Properties
The access token that authorizes the tool's calls to the service.
The full redirect URL the provider returned, including the code.
The OAuth2 client secret; absent for a public client.
The PKCE code-challenge method; only S256 is supported.
The PKCE code verifier, sent with authCode to the token endpoint.
Where the provider sends the user after signing in.
The refresh token, which gets a new access token when accessToken expires.
How the client authenticates to the token endpoint; null leaves the choice to the token exchange.
Whether this is an OAuth2 or an OpenID Connect credential.
Functions
Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.