Skip to content
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

[Feature request]: Authorization flow for "web app" #44

Open
bevzzz opened this issue Apr 6, 2023 · 0 comments
Open

[Feature request]: Authorization flow for "web app" #44

bevzzz opened this issue Apr 6, 2023 · 0 comments

Comments

@bevzzz
Copy link

bevzzz commented Apr 6, 2023

Reddit API allows authorization for 3 app types:

  • web app
  • installed app
  • script

At the moment it seems that go-reddit only supports the latter use case -- oauthTransport uses Username + Password to obtain and renew access tokens.

In order to send requests to Reddit's API on behalf of multiple users, we need to support OAuth2 for "web apps". (see also the API docs). Should be a rather simple change, as the standard oauth2 library also supports exchanging code for token.

I am using go-reddit in one of my private projects and need this functionality, so I'll be happy to contribute a PR :)

bevzzz added a commit to bevzzz/go-reddit that referenced this issue Apr 6, 2023
webAppOathParams > webAppOAuthParams

vartanbeno#44
bevzzz added a commit to bevzzz/go-reddit that referenced this issue Apr 6, 2023
This is the lingo reddit documentation uses

vartanbeno#44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant