Drop support for pre 3.0.0 authentication in the cli (#2173)

This commit is contained in:
Cheick Keita
2022-07-20 13:28:31 -07:00
committed by GitHub
parent 7f90c13724
commit b1a3e7530a

View File

@ -180,13 +180,11 @@ class Backend:
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: