OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
oauth.oauth_client.OAuthClient Class Reference

OAuth 2.0 authorization and token client. More...

Public Member Functions

OAuthClientConfig config (self)
 Return the OAuth client configuration.
str build_authorization_url (self, *, str state, str code_challenge, Mapping[str, str]|None extra_parameters=None)
 Build an OAuth authorization URL using PKCE.
OAuthTokens exchange_authorization_code (self, *, str code, str code_verifier, Mapping[str, str]|None extra_parameters=None)
 Exchange an authorization code for OAuth tokens.
OAuthTokens refresh_access_token (self, str refresh_token, *, Mapping[str, str]|None extra_parameters=None)
 Refresh an OAuth access token.

Detailed Description

OAuth 2.0 authorization and token client.

Member Function Documentation

◆ config()

OAuthClientConfig oauth.oauth_client.OAuthClient.config ( self)

Return the OAuth client configuration.

Returns
Immutable authorization/token endpoint configuration.

The documentation for this class was generated from the following file:
  • protocols/oauth/oauth_client.py