ApplicationOAuth

class github.ApplicationOAuth.ApplicationOAuth

This class is used for identifying and authorizing users for Github Apps. The reference can be found at https://docs.github.com/en/developers/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps

get_login_url(redirect_uri=None, state=None, login=None)

Return the URL you need to redirect a user to in order to authorize your App. :type: string

get_access_token(code, state=None)
Calls:

POST /login/oauth/access_token

Parameters:
  • code – string
  • state – string