napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Auth.GoogleFlow

Description

 
Synopsis

Documentation

asNapkinOAuth2 :: NapkinOAuth2Request -> NapkinOAuth2 #

construct google oauth request

eval #

Arguments

:: (MonadIO m, MonadCatch m, Katip m) 
=> NapkinOAuth2Request

napkin oauth2 request

-> m (Maybe CredentialsJson)

filePath to the stored the credentials

reset oAuth2 credentials

Exposes napkin oAuth2 flow Construct the NapkinOAuth2Request and call the workflow

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.