Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- generateInstallationToken :: MonadIO m => AppCredentials -> InstallationId -> m AccessToken
- data AppCredentials = AppCredentials {
- appId :: AppId
- privateKey :: PrivateKey
- newtype AppId = AppId {}
- newtype PrivateKey = PrivateKey {
- unwrap :: ByteString
- newtype InstallationId = InstallationId {}
- data AccessToken = AccessToken {
- token :: Text
- expires_at :: UTCTime
- data CreateAccessToken = CreateAccessToken {
- repositories :: [Text]
- repository_ids :: [Int]
- permissions :: Permissions
- module GitHub.App.Token.Permissions
- generateInstallationTokenScoped :: MonadIO m => CreateAccessToken -> AppCredentials -> InstallationId -> m AccessToken
Documentation
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.
data AppCredentials Source #
newtype PrivateKey Source #
Instances
Show PrivateKey Source # | |
Defined in GitHub.App.Token.JWT showsPrec :: Int -> PrivateKey -> ShowS # show :: PrivateKey -> String # showList :: [PrivateKey] -> ShowS # |
newtype InstallationId Source #
data AccessToken Source #
AccessToken | |
|
Instances
Scoped
data CreateAccessToken Source #
CreateAccessToken | |
|
Instances
module GitHub.App.Token.Permissions
generateInstallationTokenScoped :: MonadIO m => CreateAccessToken -> AppCredentials -> InstallationId -> m AccessToken Source #