This class is used to authenticate as a GitHub App with a single constant JWT. https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app
| 293 | |
| 294 | |
| 295 | class AppAuthToken(JWT): |
| 296 | """ |
| 297 | This class is used to authenticate as a GitHub App with a single constant JWT. |
| 298 | |
| 299 | https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app |
| 300 | |
| 301 | """ |
| 302 | |
| 303 | def __init__(self, token: str): |
| 304 | assert isinstance(token, str) |
| 305 | assert len(token) > 0 |
| 306 | self._token = token |
| 307 | |
| 308 | @property |
| 309 | def token(self) -> str: |
| 310 | return self._token |
| 311 | |
| 312 | |
| 313 | class AppInstallationAuth(Auth, WithRequester["AppInstallationAuth"]): |
no outgoing calls
no test coverage detected
searching dependent graphs…