qcs_sdk.client
class
QCSClient:
class
OAuthSession:
Manages the OAuth2
authorization process and token lifecycle for accessing the QCS API.
This struct encapsulates the necessary information to request an access token
from an authorization server, including the OAuth2
grant type and any associated
credentials or payload data.
Fields
payload
- TheOAuth2
grant type and associated data that will be used to request an access token.access_token
- The access token currently in use, if any. If no token has been provided or requested yet, this will beNone
.auth_server
- The authorization server responsible for issuing tokens.
class
AuthServer:
Okta authorization server.
class
RefreshToken:
A single type containing an access token and an associated refresh token.
class
ClientCredentials:
A pair of Client ID and Client Secret, used to request an OAuth Client Credentials Grant
class
ExternallyManaged:
A struct that manages access tokens by utilizing a user-provided refresh function.
The [ExternallyManaged
] struct allows users to define custom logic for
fetching or refreshing access tokens.
class
LoadClientError(builtins.RuntimeError):
Unspecified run-time error.
class
BuildClientError(builtins.RuntimeError):
Unspecified run-time error.