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

Create bot using existing OAuth2 token #48

Open
thomas-tharp opened this issue Jun 7, 2019 · 3 comments
Open

Create bot using existing OAuth2 token #48

thomas-tharp opened this issue Jun 7, 2019 · 3 comments

Comments

@thomas-tharp
Copy link

After browsing how the underlying authentication mechanism works in this library, it does not appear that there is a way to get a Bot (or Lurker or Scanner) without an actual username and password.

In my use case, users have already authenticated my application, and I just store the retrieved tokens and refresh them as needed.

Would you be interested in a PR that adds the ability to create an authenticated client using an existing OAuth2 token, skipping the internal authorization request?

@dillonmabry
Copy link

I would like to see the same. Great package btw.

@turnage
Copy link
Owner

turnage commented Aug 25, 2019

Sorry about the very late reply. I am interested in such a PR if anyone would like to write it.

@thomas-tharp
Copy link
Author

This is what we're using internally. Let me know if it needs anything else to get it merged in.

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

3 participants