mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Add authentication classes, move auth logic there (#2528)
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`.
This commit is contained in:
@@ -9,6 +9,7 @@ from github.PullRequestReview import PullRequestReview
|
||||
from github.Requester import Requester
|
||||
|
||||
class GithubObject:
|
||||
_requester: Optional[Requester]
|
||||
def __init__(
|
||||
self,
|
||||
requester: Optional[Requester],
|
||||
|
||||
Reference in New Issue
Block a user