Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Drop support for pre 3.0.0 authentication in the cli (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
chkeita authored Jul 20, 2022
1 parent 7f90c13 commit b1a3e75
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cli/onefuzz/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,11 @@ def get_access_token(self) -> Any:
endpoint = urlparse(self.config.endpoint).netloc.split(".")[0]
scopes = [
f"api://{self.config.tenant_domain}/{endpoint}/.default",
f"https://{self.config.tenant_domain}/{endpoint}/.default", # before 3.0.0 release
]
else:
netloc = urlparse(self.config.endpoint).netloc
scopes = [
f"api://{netloc}/.default",
f"https://{netloc}/.default", # before 3.0.0 release
]

if self.client_secret:
Expand Down

0 comments on commit b1a3e75

Please sign in to comment.