Problem with OAuth2
See original GitHub issueOAuth2 fails to authenticate using justpy redirect.
- I have two versions of a simple Google OAuth2 authenticator. The Flask one works but the JustPy one fails.
- This line (with a valid client ID) is not redirecting correctly:
jp.redirect("https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=SOME_CLIENT_ID.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Foauth-authorized%2Fgoogle&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state=SOME_STATE&access_type=offline&include_granted_scopes=true")
- Google responds with:
Error 400: invalid_request
Missing required parameter: client_id
- Exactly the same code using a Flask server and
flask.redirect
is authenticated correctly by Google. - (I have
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'
in both scripts to allow testing withhttp
rather thanhttps
.) - Is this a known issue or am I using justpy incorrectly?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
What is going on with OAuth 2.0? And why you should not use ...
Using OAuth 2.0 for authentication is really, really a bad idea… Problems arising from the use of OAuth 2.0 for authentication does not...
Read more >Troubleshoot OAuth 2.0 | Microsoft Learn
OAuth 2.0 is a secure but complicated authentication pattern. Many customers report OAuth issues with their custom connectors because their ...
Read more >How does OAuth 2.0 actually solve the problem?
In order to see how OAuth 2.0 solves this problem of sharing resources, let's look at how this problem was solved before OAuth...
Read more >Possible Errors - OAuth 2.0 Simplified
If the client ID is not recognized, the authorization server will not redirect the user. Instead, it may display a message describing the ......
Read more >OAuth 2.0 Errors - Help | Developer Portal for YouTrack and Hub
Token Response Error Codes · Refresh token was issued to another client service. · Refresh token is unknown. · Authorization code is unknown...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks to your help I finally have this working. FYI:
Yes, it works.