mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
This adds argument `auth` and deprecates `login_or_token`, `password`, `jwt`, and `app_auth` arguments of `github.Github`. This adds argument `auth` and deprecates `integration_id`, `private_key` of `github.GithubIntegration`. This deprecates the `create_jwt` method of `github.GithubIntegration`, replaced by `github.Auth.AppAuth.create_jwt`.
19 lines
697 B
Python
19 lines
697 B
Python
from typing import Any, Dict, Optional
|
|
|
|
from github.AccessToken import AccessToken
|
|
from github.GithubObject import NonCompletableGithubObject
|
|
from github.Requester import Requester
|
|
|
|
class ApplicationOAuth(NonCompletableGithubObject):
|
|
def __repr__(self) -> str: ...
|
|
def _initAttributes(self) -> None: ...
|
|
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
|
|
@property
|
|
def client_id(self) -> str: ...
|
|
@property
|
|
def client_secret(self) -> str: ...
|
|
def get_login_url(
|
|
self, redirect_uri: Optional[str], state: Optional[str], login: Optional[str]
|
|
) -> str: ...
|
|
def get_access_token(self, code: str, state: Optional[str]) -> AccessToken: ...
|