gitit-0.16: Wiki using happstack, git or darcs, and pandoc.

Safe Haskell | None
Language | Haskell2010

Network.Gitit.Authentication.Github

# Documentation

loginGithubUser :: OAuth2 -> Params -> Handler Source #

getGithubUser Source #

Arguments

:: GithubConfig | Oauth2 configuration (client secret)
-> GithubCallbackPars | Authentication code gained after authorization
-> String | Github state, we expect the state we sent in loginGithubUser
-> GititServerPart (Either GithubLoginError User) | user email and name (password `none`)

data GithubCallbackPars Source #

#### Instances

Instances details

Show GithubCallbackPars Source # |
Instance details Defined in Network.Gitit.Authentication.Github Methods showsPrec :: Int -> GithubCallbackPars -> ShowS Source # show :: GithubCallbackPars -> String Source # showList :: [GithubCallbackPars] -> ShowS Source #
FromData GithubCallbackPars Source # |
Instance details Defined in Network.Gitit.Authentication.Github Methods fromData :: RqData GithubCallbackPars Source #

data GithubLoginError Source #

ghUserMessage :: GithubLoginError -> String Source #

ghDetails :: GithubLoginError -> Maybe String Source #