example-oauth2-server
example-oauth2-server copied to clipboard
Example for OAuth 2 Server for Authlib.
From validate_consent_request to get_consent_grant https://docs.authlib.org/en/latest/flask/2/api.html?highlight=validate_consent_request#authlib.integrations.flask_oauth2.AuthorizationServer.get_consent_grant Solves this error ``` [2022-08-08 10:09:42,040] ERROR in app: Exception on /oauth/authorize [GET] Traceback (most recent call last): File "/Users/u/.pyenv/versions/3.8.12/lib/python3.8/site-packages/flask/app.py", line 2525, in wsgi_app response...
Hi, The sample in this repo is pretty straightforward and clear. Thanks. One thing is not mentioned in tutorial is getting new access_token with refresh_token as way of renewing an...
flask version >=2.0.0 Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1704, in make_response rv = self.response_class.force_type(rv, request.environ) # type: ignore # noqa: B950 File "/usr/local/python3/lib/python3.7/site-packages/werkzeug/wrappers/response.py", line 263, in force_type...
I have an issue with the example on this page: https://github.com/authlib/example-oauth2-server curl -u zdIKyq4ngefIcRtcU83mYK4x:oBxXfYNeqGtBq07UHrmMXLfonxTimxoJ0qpIhV9lQWYtN82Z -XPOST http://127.0.0.1:5000/oauth/token -F grant_type=password -F username=test1 -F password=valid -F scope=profile Response: {"error": "unauthorized_client"} There is not...
Hi, I got error from authorization.validate_consent_request in /oauth/authorize route api. "GET /oauth/authorize?response_type=code&client_id=AF58CFlIrh3XCChtC52Bfee2&redirect_uri=http%3A%2F%2Ftestclient.com%3A7070%2Fauthorize&scope=profile&state=Ygo1m4h6MZLn7dGc7dtGcGG67YaEdL HTTP/1.1" 200 But client code get http status 302.
I am calling /oauth/token to generate the token by passing the code. I set OAUTH2_REFRESH_TOKEN_GENERATOR=True in my flask app config. But I only get access_token in the response but not...
  Hi. I tried with 'client_secret_post', but only an error appears ('invalid_client'). (No changes have been made to the source file.) but, It works if I try after changing...
It is not strictly in OAuth specs, but I guess it is something often used, and [it will be someday in the spec](https://tools.ietf.org/id/draft-hunt-oauth-v2-user-a4c-01.html). A common usecase for this is the...
After more debugging than I'd care to admit, I have made a (barely) functioning Django Authlib2 provider w/ the Authorization Code Grant strat. I've seen from prior discussion that there...