-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Missing scope on server side when using OAuthClient from Authlib #96
Comments
I don't understand your question. You can provide a minimal project to reproduce your problem, describe with:
|
Example: I used the server from the example. The username is I created an application on Flask. To run it, run this command: For authorization, go to URL: If you use CURL, then there is no problem. For example, I created another endpoint. I think the client for Flask does not transfer scope. |
1. password 2. client_credentials #96
Fixed with ade352b |
currently, you can use |
BTW, your config:
The config is invalid. It will not read |
1. password 2. client_credentials lepture/authlib#96
When I use any of the standard clients, according to the documentation, I pass the scope key in the client_kwargs argument.
The server side is also implemented using Authlib. When trying to get a token using the ClientCredentialsGrant grant, the scope on the server side is lost. As a result, the token is broken, the server gives it, but without scope.
If you use curl, then this problem is not observed.
What am I doing wrong? And sorry for Google translator
The text was updated successfully, but these errors were encountered: