-
Notifications
You must be signed in to change notification settings - Fork 89
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
Authentication error ("oauth2: server response missing access_token") #18
Comments
Try appending your 2FA token to your password like this: "password:token" |
Just tried - both with the token itself and a fresh TOTP, for the sake of it - same error. |
I have had the same issue and 2FA was the issue here, it works once I disabled it. I am aware storing the 2FA secret alongside the password would be risky, as is having no 2FA. |
I have the same issue. 2FA is disabled, tried with ID/secret and ID/secret/username/password - no luck. Any ideas? EDIT: My bad, the password was incorrect. Still, isn't it possible to use Reddit API with only ID & secret? |
Could you manage to authenticate with just ID and secret, and no username and password, while still having 2FA enabled? |
@markkuit Nope, no luck with ID/secret only. Still need to provide username & password. |
@codecat Did you need to provide username & password in addition to client id & secret to login? |
Update: as per Reddit's OAuth2 docs, they actually do support auth without username/password. Here's an example:
However, I didn't see any mention of // EDIT: Basically, what we need is a possibility to include // EDIT 2: It seems like Golang's OAuth2 lib does not support custom // EDIT 3: Actually, it does! There's a submodule - https://pkg.go.dev/golang.org/x/oauth2/clientcredentials - which supports exactly what's needed for the "Application Only OAuth". This can be done by editing |
I've submitted a PR (#21) which will allow us to use Reddit API with client_id & client_secret only, no credentials. |
I'm facing issues authenticating for a simple OverviewOf query.
I created the API app in my account ("script" type) and registered it for Reddit API usage, but I cannot seem to get it to authenticate correctly. I'm wondering if it might have to do with MFA.
Here is a snippet to reproduce the issue along with its output:
I doublechecked the credentials and they are indeed correct. What am I missing?
The text was updated successfully, but these errors were encountered: