diff --git a/ad_api/base/credential_provider.py b/ad_api/base/credential_provider.py index ea8e417..9b0aab9 100644 --- a/ad_api/base/credential_provider.py +++ b/ad_api/base/credential_provider.py @@ -126,8 +126,10 @@ def __init__( client_id_env = self._get_env('AD_API_CLIENT_ID'), client_secret_env = self._get_env('AD_API_CLIENT_SECRET') + refresh_token_env = self._get_env('AD_API_REFRESH_TOKEN') + profile_id_env = self._get_env('AD_API_PROFILE_ID') - if client_id_env is not None and client_secret_env is not None: + if client_id_env is not None and client_secret_env is not None and refresh_token_env is not None and profile_id_env is not None: try: self.credentials = FromEnvCredentialProvider().load_credentials()