You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
bevzzz
added a commit
to bevzzz/go-reddit
that referenced
this issue
Apr 6, 2023
Reddit API allows authorization for 3 app types:
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 :)The text was updated successfully, but these errors were encountered: