question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OAuth authentication failed with Bad Request

See original GitHub issue

Hi! Whenever I try to login to my account via Osu!Lazer, it immediately fails without any error message. The password field simply gets emptied. I can log into the website without any problem.

By looking at the log files, it seems that the OAuth resource owner password flow is failing. The error message is unfortunately very generic.

Request to https://osu.ppy.sh/oauth/token failed with System.Net.WebException: BadRequest.
Response was: {"error":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}

Here are all the log files available.

database.log network.log performance.log runtime.log updater.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Joehuucommented, Jul 27, 2020

Yeah, that is being tracked in https://github.com/ppy/osu/issues/4086. Closing as resolved.

0reactions
MatteoJoliveaucommented, Jul 27, 2020

Woah I missed it, sorry @Joehuu

Guess I should have search for more keywords than just “oauth” 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Access Token Bad Request Exception for OAuth With ...
I can get the code but when get access token by code, it throws error 400. I have follow the steps of /api/rest/authorization/use-authorization-code.html....
Read more >
Error: Bad Request when trying to authenticate user
I have checked my Dashboard settings and it is correctly set to Single Page Application and None for Token Endpoint Authentication Method. Could ......
Read more >
Oauth 2.0 token received but 400 Bad Request from GET
Tested this endpoint with a temp admin generated JWT token and it worked. · Tried regenerating keys, tokens, etc. · Scoped admin privileges ......
Read more >
OAuth 2.0 Authorization Errors
Errors can occur during OAuth authorization. For example, a user denies access to the connected app or request parameters are incorrect. When errors...
Read more >
OAuth authentication issue with authWithOAuth2(): Bad ...
When implementing authentication with the GitHub provider, I receive a "Bad Request" error message ( POST http://127.0.0.1:8090/api/collections/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found