github-0.28.0.1: Access to the GitHub API, v3.
LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellSafe-Inferred
LanguageHaskell2010

GitHub.Auth

Description

 
Synopsis

Documentation

data Auth Source #

The Github auth data type

Constructors

BasicAuth ByteString ByteString

Username and password

OAuth Token

OAuth token

EnterpriseOAuth Text Token

Custom endpoint and OAuth token

Instances

Instances details
Data Auth Source # 
Instance details

Defined in GitHub.Auth

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Auth -> c Auth Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Auth Source #

toConstr :: Auth -> Constr Source #

dataTypeOf :: Auth -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Auth) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Auth) Source #

gmapT :: (forall b. Data b => b -> b) -> Auth -> Auth Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Auth -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Auth -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Auth -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Auth -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Auth -> m Auth Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Auth -> m Auth Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Auth -> m Auth Source #

Generic Auth Source # 
Instance details

Defined in GitHub.Auth

Associated Types

type Rep Auth :: Type -> Type Source #

Methods

from :: Auth -> Rep Auth x Source #

to :: Rep Auth x -> Auth Source #

Show Auth Source # 
Instance details

Defined in GitHub.Auth

Binary Auth Source # 
Instance details

Defined in GitHub.Auth

NFData Auth Source # 
Instance details

Defined in GitHub.Auth

Methods

rnf :: Auth -> () Source #

Eq Auth Source # 
Instance details

Defined in GitHub.Auth

Methods

(==) :: Auth -> Auth -> Bool Source #

(/=) :: Auth -> Auth -> Bool Source #

Ord Auth Source # 
Instance details

Defined in GitHub.Auth

AuthMethod Auth Source # 
Instance details

Defined in GitHub.Auth

Hashable Auth Source # 
Instance details

Defined in GitHub.Auth

type Rep Auth Source # 
Instance details

Defined in GitHub.Auth

type Rep Auth

class AuthMethod a Source #

A type class for different authentication methods

Note the () intance, which doee nothing, i.e. is unauthenticated.

Minimal complete definition

endpoint, setAuthRequest

Instances

Instances details
AuthMethod Auth Source # 
Instance details

Defined in GitHub.Auth

AuthMethod () Source # 
Instance details

Defined in GitHub.Auth

endpoint :: AuthMethod a => a -> Maybe Text Source #

Custom API endpoint without trailing slash

setAuthRequest :: AuthMethod a => a -> Request -> Request Source #

A function which sets authorisation on an HTTP request