RapidAuth¶
- class rapid.auth.RapidAuth(client_id: Optional[str] = None, client_secret: Optional[str] = None, url: Optional[str] = None)¶
Bases:
objectThe rAPId auth class is a helper authentication class used to connect to your rAPId API instance. The authentication values can be passed into the constructor but they default to reading them from your environment variables.
- Parameters:
client_id (str, optional) – Your rAPId API client id token. Defaults to None.
client_secret (str, optional) – Your rAPId API client secret token. Defaults to None.
url (str, optional) – The url where your rAPId API is hosted. Defaults to None.
- credentials_secret()¶
- evaluate_inputs(value: str, environment_variable: str)¶
- fetch_token()¶
- property headers¶
- property payload¶
- request_token()¶
- validate_credentials()¶
Tests authentication to the rAPId API.
- Raises:
rapid.exceptions.AuthenticationErrorException – If no authorisation can be created.
- Returns:
If authentication was successful.
- Return type:
None