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

I can set provider 'admins' for refreshing tokens even if refresh token is for 'user' #128

Open
migda opened this issue Apr 15, 2020 · 1 comment

Comments

@migda
Copy link

migda commented Apr 15, 2020

As a user I become an admin if I use refresh token and set provider to admins.

And also I can get access token for the user if I use admin's refresh token and set provider to users.

{
    "grant_type": "refresh_token",
    "refresh_token": "{any_valid_refresh_token_for_the_user}",
	"client_id": 1,
	"client_secret": "secret",
    "scope": "",
    "provider": "admins"
}

Edit: Admin and User have the same id in database.

@jamalyan
Copy link

jamalyan commented May 1, 2020

@sfelix-martins I have the same thing (

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

2 participants