mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
Drop support for pre 3.0.0 authentication in the cli (#2173)
This commit is contained in:
@ -180,13 +180,11 @@ class Backend:
|
|||||||
endpoint = urlparse(self.config.endpoint).netloc.split(".")[0]
|
endpoint = urlparse(self.config.endpoint).netloc.split(".")[0]
|
||||||
scopes = [
|
scopes = [
|
||||||
f"api://{self.config.tenant_domain}/{endpoint}/.default",
|
f"api://{self.config.tenant_domain}/{endpoint}/.default",
|
||||||
f"https://{self.config.tenant_domain}/{endpoint}/.default", # before 3.0.0 release
|
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
netloc = urlparse(self.config.endpoint).netloc
|
netloc = urlparse(self.config.endpoint).netloc
|
||||||
scopes = [
|
scopes = [
|
||||||
f"api://{netloc}/.default",
|
f"api://{netloc}/.default",
|
||||||
f"https://{netloc}/.default", # before 3.0.0 release
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if self.client_secret:
|
if self.client_secret:
|
||||||
|
Reference in New Issue
Block a user