Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- sampleGoogleAuthorizationCodeApp :: AuthorizationCodeApplication
- sampleServiceAccountApp :: Jwt -> JwtBearerApplication
- data GoogleServiceAccountKey = GoogleServiceAccountKey {
- privateKey :: String
- clientEmail :: Text
- projectId :: Text
- privateKeyId :: Text
- clientId :: Text
- authUri :: Text
- tokenUri :: Text
- authProviderX509CertUrl :: Text
- clientX509CertUrl :: Text
- mkJwt :: PrivateKey -> Text -> Maybe Text -> Set Scope -> Idp Google -> IO (Either String Jwt)
- readPemRsaKey :: String -> IO (Either String PrivateKey)
- fetchUserInfo :: (MonadIO m, HasUserInfoRequest a, FromJSON b) => IdpApplication i a -> Manager -> AccessToken -> ExceptT ByteString m b
- defaultGoogleIdp :: Idp Google
- data GoogleUser = GoogleUser {}
Authorization Code flow
Service Account
data GoogleServiceAccountKey Source #
Service account key (in JSON format) that download from google
GoogleServiceAccountKey | |
|
Instances
Service Account
:: String | PEM content |
-> IO (Either String PrivateKey) |
Read private RSA Key in PEM format
IDP
fetchUserInfo :: (MonadIO m, HasUserInfoRequest a, FromJSON b) => IdpApplication i a -> Manager -> AccessToken -> ExceptT ByteString m b Source #
data GoogleUser Source #