napkin-0.5.13
Safe HaskellNone
LanguageHaskell2010

Napkin.Auth.GoogleEnvironment

Synopsis

Documentation

makeGoogleEnvWithCredentials :: (MonadIO m, MonadCatch m, Katip m) => Maybe ByteString -> Maybe Seconds -> Credentials BigQueryScopes -> m (Env BigQueryScopes) #

creates a google env with the scopes required for bigquery ops

makeGoogleEnv #

Arguments

:: (MonadCatch m, Katip m) 
=> FilePath

credentials file

-> Maybe Seconds 
-> m GoogleEnv 

create goole env from the input file The main purpose for this function is to valideate the generated napkin credentials. Note, function only validates if we can create a google env.

googleEnvFromJSONCredentials #

Arguments

:: (MonadCatch m, Katip m) 
=> ByteString

oAuth2 token ByteString

-> m (Credentials BigQueryScopes) 

create google environment from credentials json