turnage / graw

Golang Reddit API Wrapper
MIT License
288 stars 49 forks source link

Adding support for passing in an existing oauth2.Token in the App config #49

Open thomas-tharp opened 4 years ago

thomas-tharp commented 4 years ago

Support for using an existing OAuth2 token instead of authenticating via username/password.

Addresses https://github.com/turnage/graw/issues/48

turnage commented 4 years ago

Not sure why CLA-Assistant isn't jumping on this one. If you wouldn't mind signing, this looks good to merge as is. Thank you for upstreaming your changes!

https://cla-assistant.io/turnage/graw

CLAassistant commented 4 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Thomas Tharp seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Helyk commented 4 years ago

@odin243 Hi, I am interested in this PR and I will probably use it but there are a few things unclear to me.

  1. How do you pass an existing token to the app?
  2. Can the app perform the initial procedure of requesting authorization from a user? If not, how do you do it?