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

Add scope to token refresh request #448

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lancerushing
Copy link

@lancerushing lancerushing commented Oct 20, 2020

Fixes #447

@google-cla google-cla bot added the cla: yes label Oct 20, 2020
@gopherbot
Copy link
Contributor

This PR (HEAD: ff6afb7) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/264037 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://golang.org/doc/contribute.html#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.


Please don’t reply on this GitHub thread. Visit golang.org/cl/264037.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: cf02433) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/264037 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

This PR (HEAD: fa2a674) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/oauth2/+/264037 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@andig
Copy link
Contributor

andig commented Mar 14, 2021

I would be interested in this. The VW api needs the scopes during token refresh.

@zak905
Copy link

zak905 commented May 8, 2021

any updates about this ? It is actually quiet common to require scopes in the token refresh request

@zak905
Copy link

zak905 commented May 9, 2021

@gopherbot
Copy link
Contributor

Message from zakaria amine:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/264037.
After addressing review feedback, remember to publish your drafts!

@zak905
Copy link

zak905 commented May 9, 2021

actually, it seems like even if Microsoft mentions that scopes are required, the refresh request is successfull without scopes

@andig
Copy link
Contributor

andig commented May 9, 2021

In relation to the proposal https://groups.google.com/g/golang-nuts/c/RJSNRbUvIPE/m/1qW_D6uMBAAJ I would propose a slightly different approach. Instead of adding additional options to the existing token refresh handling, I would prefer if a custom token refresher could be specified that allows fully tweaking the refresh, e.g. by adding the required headers needed for #483.

Didn't receive any feedback on groups though.

@zak905
Copy link

zak905 commented May 9, 2021

Thanks (Not sure about the expires_in, seems to work properly. Do you have any use case? ), I like your proposal concerning the TokenSource, why not even create a new TokenSource, something like ConfigurableTokenSource, instead of modifying the existing one. I think the best way to convince project maintainers is to submit a PR, they may not see the use case immediately

@andig
Copy link
Contributor

andig commented May 9, 2021

Not sure there's much use in another PR. I've commented in the groups discussion, maybe it can spark some interest.

@vijaytdh
Copy link

There are at least 2 other PRs that have similarly had no response...
#621
#579

@hickford hickford changed the title Add scope to token refresh request. Closes #447 Add scope to token refresh request Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add scope to "authorization" and "refresh token" requests
5 participants