github-app-token-0.0.2.0: Generate an installation access token for a GitHub App
Safe HaskellSafe-Inferred
LanguageGHC2021

GitHub.App.Token

Contents

Synopsis

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.

newtype AppId Source #

Constructors

AppId 

Fields

newtype PrivateKey Source #

Constructors

PrivateKey 

Fields

Instances

Instances details
Show PrivateKey Source # 
Instance details

Defined in GitHub.App.Token.JWT

newtype InstallationId Source #

Constructors

InstallationId 

Fields

data AccessToken Source #

Constructors

AccessToken 

Fields

Instances

Instances details
FromJSON AccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

Generic AccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

Associated Types

type Rep AccessToken :: Type -> Type #

Show AccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

HasExpiresAt AccessToken Source # 
Instance details

Defined in GitHub.App.Token.Refresh

type Rep AccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

type Rep AccessToken = D1 ('MetaData "AccessToken" "GitHub.App.Token.Generate" "github-app-token-0.0.2.0-2zJ8C3bSxtwJScDB0unpYX" 'False) (C1 ('MetaCons "AccessToken" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "expires_at") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))

Scoped

data CreateAccessToken Source #

Constructors

CreateAccessToken 

Fields

Instances

Instances details
ToJSON CreateAccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

Monoid CreateAccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

Semigroup CreateAccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

Generic CreateAccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

Associated Types

type Rep CreateAccessToken :: Type -> Type #

Eq CreateAccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

type Rep CreateAccessToken Source # 
Instance details

Defined in GitHub.App.Token.Generate

type Rep CreateAccessToken = D1 ('MetaData "CreateAccessToken" "GitHub.App.Token.Generate" "github-app-token-0.0.2.0-2zJ8C3bSxtwJScDB0unpYX" 'False) (C1 ('MetaCons "CreateAccessToken" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: (S1 ('MetaSel ('Just "repository_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Permissions))))