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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I Create Tokens with PyGithub? I can't find any examples and would love some guidance #1230

Closed
lwasser opened this issue Sep 25, 2019 · 4 comments
Labels

Comments

@lwasser
Copy link

lwasser commented Sep 25, 2019

Hi There 馃憢 !
I'm new to pygithub and the github api so please let me know if this isn't the right place to ask this question. i've been pouring through the docs and do some some reference to the authorization object but i'm not exactly sure how to use it. Has anyone implemented authorization as follows:

user authenticates with github username and password
Token is created in their account via pygithub
Token string is accessed via pygithub

Most of the examples start with the user providing the login credentials or the token string. but i'd like to create the string via the api and then access it.

Thank you for any guidance!

@lwasser lwasser changed the title Can I Create Tokens with PyGithub? I can't find any examples. Can I Create Tokens with PyGithub? I can't find any examples and would love some guidance Sep 25, 2019
@kcranston
Copy link

kcranston commented Sep 27, 2019

Working with @lwasser - we're trying to switch from github3 to pygithub, and looking for replacement instructions for gh3's authenticating with 2FA and using tokens. I can see how to use pygithub login with username + password, or how to login with a token, but would like to authenticate with username + password + 2fa_code and then use that authentication to get a token (which I can then save to a local config).

@stale
Copy link

stale bot commented Nov 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 26, 2019
@stale stale bot closed this as completed Dec 3, 2019
@lwasser
Copy link
Author

lwasser commented Dec 4, 2019

we need a sad face github emoji for this!

@Zethson
Copy link

Zethson commented Apr 15, 2020

Could this issue be reopened?

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

No branches or pull requests

3 participants