mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 04:18:07 +00:00
Reverting client_id
Name Change (#2889)
This commit is contained in:
committed by
GitHub
parent
3d299ce51e
commit
ca7e07f027
@ -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())
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user