Creates a new OAuth authentication strategy.
OAuth configuration including endpoints, credentials, and options
Clears the cached token, forcing a new token request on next use.
Gets authentication headers, automatically handling token refresh if needed.
A promise that resolves to the authentication headers.
Gets the configured OAuth endpoints and settings.
Configuration information (excluding sensitive data).
Gets information about the current cached token.
Token information or null if no token is cached.
Manually refreshes the cached token.
A promise that resolves to new authentication headers.
Generic OAuth 2.0 authentication strategy with token caching and refresh capabilities. Supports client credentials flow and authorization code flow with automatic token refresh.
Deprecated
This strategy is not recommended for browser-based applications as it uses the insecure client_credentials grant type. Please use PKCEOAuthStrategy instead.