Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcommand for returning a valid accessToken #2774

Closed
colemickens opened this issue Apr 5, 2017 · 2 comments
Closed

Subcommand for returning a valid accessToken #2774

colemickens opened this issue Apr 5, 2017 · 2 comments
Assignees
Milestone

Comments

@colemickens
Copy link
Contributor

gcloud config config-helper returns a JSON blob with a number of things about the current configuration of the CLI, along with an properly-refreshed, active token for applications to use. This is a feature request for a similar functionality in the az CLI.

Scenario: In Kubernetes, we are trying to emulate the Google Auth plugin which uses gcloud config config-helper to get a refreshed accessToken and then uses it for authentication in it's own ways. Currently, the Azure implementation reaches into ~/.azure/ directly to read the access token. It would be much better if this was done via os.Exec'ing az config config-helper or something similar, so that the CLI can refresh the token if needed and then return it.

Can we create a command like config config-helper in az?

cc: @brendandburns

@colemickens
Copy link
Contributor Author

cc: @anhowe as FYI

@yugangw-msft
Copy link
Contributor

@colemickens, i should get it done early next week. Let me know if there are any plan change at your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants