| 13 | |
| 14 | class ClientAuthConfigHttp(GAPI): |
| 15 | def __init__(self, creds: GHuntCreds, headers: Dict[str, str] = {}): |
| 16 | super().__init__() |
| 17 | |
| 18 | if not headers: |
| 19 | headers = gb.config.headers |
| 20 | |
| 21 | base_headers = {} |
| 22 | |
| 23 | headers = {**headers, **base_headers} |
| 24 | |
| 25 | self.hostname = "clientauthconfig.googleapis.com" |
| 26 | self.scheme = "https" |
| 27 | |
| 28 | self.authentication_mode = None # sapisidhash, cookies_only, oauth or None |
| 29 | self.require_key = "pantheon" # key name, or None |
| 30 | |
| 31 | self._load_api(creds, headers) |
| 32 | |
| 33 | async def get_brand(self, as_client: httpx.AsyncClient, project_number: int) -> Tuple[bool, CacBrand]: |
| 34 | endpoint_name = inspect.currentframe().f_code.co_name |