Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- defaultOAuth2 :: OAuth2
- asNapkinOAuth2 :: NapkinOAuth2Request -> NapkinOAuth2
- eval :: (MonadIO m, MonadCatch m, Katip m) => NapkinOAuth2Request -> m (Maybe CredentialsJson)
- configureGoogleOAuth2Env :: (MonadReader NapkinOAuth2 m, MonadIO m) => m OAuth2Env
Documentation
defaultOAuth2 :: OAuth2 #
asNapkinOAuth2 :: NapkinOAuth2Request -> NapkinOAuth2 #
construct google oauth request
:: (MonadIO m, MonadCatch m, Katip m) | |
=> NapkinOAuth2Request | napkin oauth2 request |
-> m (Maybe CredentialsJson) | filePath to the stored the credentials |
Exposes napkin oAuth2 flow Construct the NapkinOAuth2Request and call the workflow
reset oAuth2 credentials
configureGoogleOAuth2Env :: (MonadReader NapkinOAuth2 m, MonadIO m) => m OAuth2Env #
Initializes napkin oAuth configuration Napkin takes clientId, clientSecret and callback url to initialize the oauth configs. configuration parameters are from google oauth api docs, https://developers.google.com/identity/protocols/oauth2/native-app#create-code-challenge build napkin oAuthEnv.