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

sdk client.RefreshOAuthToken, without set scope #116

Open
Y-Matin opened this issue May 28, 2024 · 4 comments
Open

sdk client.RefreshOAuthToken, without set scope #116

Y-Matin opened this issue May 28, 2024 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@Y-Matin
Copy link

Y-Matin commented May 28, 2024

first : get token by code and state , and set scope:profile

when refresh token by client.RefreshOAuthToken, get new accessToken without scope .
so I use new accessToken to get userinfo (/api/userinfo), get response doesn't have user's permissions.

but the resultful api need scope parameter
image

@casbin-bot
Copy link

@casbin-bot casbin-bot added the question Further information is requested label May 28, 2024
@Y-Matin
Copy link
Author

Y-Matin commented May 29, 2024

Can you tell me first if this is a problem or if my usage is incorrect ? Thanks

@CRSylar
Copy link

CRSylar commented Jun 19, 2024

i've actually the same problem, when calling client.RefreshOauthToken with the refresh token value i receive an error stating that the token is invalid

@hsluoyz
Copy link
Member

hsluoyz commented Jun 19, 2024

@Y-Matin @CRSylar can you make a PR?

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

No branches or pull requests

4 participants