-
Notifications
You must be signed in to change notification settings - Fork 38
feat: a new "scope" argument for refresh-token #362
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
Conversation
cmd/authtoken/main.go
Outdated
| const ( | ||
| aksAADApplicationID = "6dae42f8-4368-4678-94ff-3960e28e3630" | ||
| ) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why move the azure specific const to the main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have moved back the const to pkg/authtoken/providers/azure/azure_msi.go, and keep the default scope value logic there too.
ryanzhang-oss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new scope field is not even assigned.
…ify the type 2. move the default scope logic to pkg/authtoken/providers/azure/azure_msi.go
I found that too. That is shame. I have fixed it. |
Description of your changes
Today the Azure provider are using a static scope in token. In future the different scope need to be used for the flexible scenario.
This changes are:
--scopearguments in refresh-token. The new scope argument will be pass to Azure token provider.I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
I added unit test for changes codes
Special notes for your reviewer