Reverting client_id Name Change (#2889)

This commit is contained in:
Noah McGregor Harper
2023-02-28 00:01:57 +00:00
committed by GitHub
parent 3d299ce51e
commit ca7e07f027
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
o.config(
endpoint=os.environ.get("ONEFUZZ_ENDPOINT"),
override_authority=os.environ.get("ONEFUZZ_AUTHORITY"),
override_client_id=os.environ.get("ONEFUZZ_CLIENT_ID"),
client_id=os.environ.get("ONEFUZZ_CLIENT_ID"),
)
info = o.info.get()
return func.HttpResponse(info.json())

View File

@ -1895,7 +1895,7 @@ class Onefuzz:
self,
endpoint: Optional[str] = None,
override_authority: Optional[str] = None,
override_client_id: Optional[str] = None,
client_id: Optional[str] = None,
override_tenant_domain: Optional[str] = None,
enable_feature: Optional[PreviewFeature] = None,
reset: Optional[bool] = None,
@ -1922,10 +1922,10 @@ class Onefuzz:
"Missing HTTP Authentication"
)
self._backend.config.endpoint = endpoint
if client_id is not None:
self._backend.config.client_id = client_id
if override_authority is not None:
self._backend.config.authority = override_authority
if override_client_id is not None:
self._backend.config.client_id = override_client_id
if enable_feature:
self._backend.enable_feature(enable_feature.name)
if override_tenant_domain is not None: