Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.Gitit.Authentication.Github
Documentation
loginGithubUser :: OAuth2 -> Params -> Handler 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 |
data GithubCallbackPars Source #
Instances
Show GithubCallbackPars Source # | |
Defined in Network.Gitit.Authentication.Github Methods showsPrec :: Int -> GithubCallbackPars -> ShowS show :: GithubCallbackPars -> String showList :: [GithubCallbackPars] -> ShowS | |
FromData GithubCallbackPars Source # | |
Defined in Network.Gitit.Authentication.Github Methods |
data GithubLoginError Source #
ghUserMessage :: GithubLoginError -> String Source #
ghDetails :: GithubLoginError -> Maybe String Source #