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
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!
The text was updated successfully, but these errors were encountered:
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
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).
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.
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!
The text was updated successfully, but these errors were encountered: