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: str | None = None, state: str | None = None, login: str | None = None) → str

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

get_access_token(code: str, state: str | None = None) → AccessToken
Calls

POST /login/oauth/access_token

refresh_access_token(refresh_token: str) → AccessToken
Calls

POST /login/oauth/access_token

Parameters

refresh_token – string