mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
* Support full GitHub app authentication Refactor GithubIntegration class and add test case for app authentication Add permissions and repository properties in InstallationAuthorization Set JWT_EXPIRY=60 by default in GithubIntegration constructor * Modify existing testcases for GithubIntegration as per the framework and add missing tests * Provide installation ID for creating the access token instead of getting the first installation * Add optional permissions support for installation access token * Add lock around app authentication * Keep compatibility for importing GithubIntegration from MainClass * Group app authentication parameters in a class Co-authored-by: Malik Ammar Akbar <malikammar.akbar@pfizer.com> Co-authored-by: Enrico Minack <github@enrico.minack.dev>
11 lines
258 B
Python
11 lines
258 B
Python
from typing import Optional, Dict, Union
|
|
|
|
class AppAuthentication:
|
|
def __init__(
|
|
self,
|
|
app_id: Union[int, str],
|
|
private_key: str,
|
|
installation_id: int,
|
|
token_permissions: Optional[Dict[str, str]] = ...,
|
|
): ...
|