octomachinery.github.api.tokens module¶
GitHub token types definitions.
- class octomachinery.github.api.tokens.GitHubJWTToken(token_value: SecretStr = <function GitHubToken.<lambda>>)[source]¶
Bases:
GitHubTokenGitHub JSON Web Token.
It represents GitHub App token.
- Ref: https://developer.github.com
/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app
- class octomachinery.github.api.tokens.GitHubOAuthToken(token_value: SecretStr = <function GitHubToken.<lambda>>)[source]¶
Bases:
GitHubTokenGitHub OAuth Token.
It can represent either App Installation token or a personal one.
- Ref: https://developer.github.com
/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation