fix cli client registration (#825)

- The CLIClient approle was not assigned to the cli registration created byt he registration.py script
This commit is contained in:
Cheick Keita
2021-04-26 13:35:34 -07:00
committed by GitHub
parent ced21b2ea3
commit 358d85ef82
3 changed files with 45 additions and 22 deletions

View File

@ -1572,10 +1572,14 @@ class Onefuzz:
client_secret: Optional[str] = None,
enable_feature: Optional[PreviewFeature] = None,
tenant_domain: Optional[str] = None,
reset: Optional[bool] = None,
) -> BackendConfig:
"""Configure onefuzz CLI"""
self.logger.debug("set config")
if reset:
self._backend.config = BackendConfig(authority="", client_id="")
if endpoint is not None:
# The normal path for calling the API always uses the oauth2 workflow,
# which the devicelogin can take upwards of 15 minutes to fail in