Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype InstallationId = InstallationId {}
- data AccessToken = AccessToken {
- token :: Text
- expires_at :: UTCTime
- generateInstallationToken :: MonadIO m => AppCredentials -> InstallationId -> m AccessToken
- data CreateAccessToken = CreateAccessToken {
- repositories :: [Text]
- repository_ids :: [Int]
- permissions :: Permissions
- module GitHub.App.Token.Permissions
- generateInstallationTokenScoped :: MonadIO m => CreateAccessToken -> AppCredentials -> InstallationId -> m AccessToken
- newtype InvalidPrivateKey = InvalidPrivateKey PrivateKey
- data InvalidDate = InvalidDate {}
- newtype InvalidIssuer = InvalidIssuer Issuer
- data AccessTokenHttpError = AccessTokenHttpError {
- status :: Status
- body :: ByteString
- data AccessTokenJsonDecodeError = AccessTokenJsonDecodeError {
- body :: ByteString
- message :: String
Documentation
newtype InstallationId Source #
data AccessToken Source #
AccessToken | |
|
Instances
generateInstallationToken :: MonadIO m => AppCredentials -> InstallationId -> m AccessToken Source #
Generate a token for all repositories and the installation's permissions
See generateInstallationTokenScoped
for changing either of these.
Scoping AccessToken
s
data CreateAccessToken Source #
CreateAccessToken | |
|
Instances
module GitHub.App.Token.Permissions
generateInstallationTokenScoped :: MonadIO m => CreateAccessToken -> AppCredentials -> InstallationId -> m AccessToken Source #
Errors
newtype InvalidPrivateKey Source #
Instances
Exception InvalidPrivateKey Source # | |
Defined in GitHub.App.Token.JWT | |
Show InvalidPrivateKey Source # | |
Defined in GitHub.App.Token.JWT showsPrec :: Int -> InvalidPrivateKey -> ShowS # show :: InvalidPrivateKey -> String # showList :: [InvalidPrivateKey] -> ShowS # |
data InvalidDate Source #
Instances
Exception InvalidDate Source # | |
Defined in GitHub.App.Token.JWT | |
Show InvalidDate Source # | |
Defined in GitHub.App.Token.JWT showsPrec :: Int -> InvalidDate -> ShowS # show :: InvalidDate -> String # showList :: [InvalidDate] -> ShowS # |
newtype InvalidIssuer Source #
Instances
Exception InvalidIssuer Source # | |
Defined in GitHub.App.Token.JWT | |
Show InvalidIssuer Source # | |
Defined in GitHub.App.Token.JWT showsPrec :: Int -> InvalidIssuer -> ShowS # show :: InvalidIssuer -> String # showList :: [InvalidIssuer] -> ShowS # |
data AccessTokenHttpError Source #
Instances
Exception AccessTokenHttpError Source # | |
Show AccessTokenHttpError Source # | |
Defined in GitHub.App.Token.Generate showsPrec :: Int -> AccessTokenHttpError -> ShowS # show :: AccessTokenHttpError -> String # showList :: [AccessTokenHttpError] -> ShowS # |
data AccessTokenJsonDecodeError Source #