gogol-oauth2-0.1.1: Google OAuth2 SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.OAuth2.Types

Contents

Description

 

Synopsis

Service Configuration

oAuth2Service :: ServiceConfig Source #

Default request referring to version v2 of the Google OAuth2 API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

userInfoProFileScope :: Proxy '["https://www.googleapis.com/auth/userinfo.profile"] Source #

View your basic profile info

plusLoginScope :: Proxy '["https://www.googleapis.com/auth/plus.login"] Source #

Know the list of people in your circles, your age range, and language

userInfoEmailScope :: Proxy '["https://www.googleapis.com/auth/userinfo.email"] Source #

View your email address

plusMeScope :: Proxy '["https://www.googleapis.com/auth/plus.me"] Source #

Know who you are on Google

TokenInfo

data TokenInfo Source #

Instances

Eq TokenInfo Source # 
Data TokenInfo Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TokenInfo -> c TokenInfo #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TokenInfo #

toConstr :: TokenInfo -> Constr #

dataTypeOf :: TokenInfo -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TokenInfo) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TokenInfo) #

gmapT :: (forall b. Data b => b -> b) -> TokenInfo -> TokenInfo #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TokenInfo -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TokenInfo -> r #

gmapQ :: (forall d. Data d => d -> u) -> TokenInfo -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TokenInfo -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TokenInfo -> m TokenInfo #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenInfo -> m TokenInfo #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenInfo -> m TokenInfo #

Show TokenInfo Source # 
Generic TokenInfo Source # 

Associated Types

type Rep TokenInfo :: * -> * #

ToJSON TokenInfo Source # 
FromJSON TokenInfo Source # 
type Rep TokenInfo Source # 

tokenInfo :: TokenInfo Source #

Creates a value of TokenInfo with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tiAudience :: Lens' TokenInfo (Maybe Text) Source #

Who is the intended audience for this token. In general the same as issued_to.

tiEmail :: Lens' TokenInfo (Maybe Text) Source #

The email address of the user. Present only if the email scope is present in the request.

tiExpiresIn :: Lens' TokenInfo (Maybe Int32) Source #

The expiry time of the token, as number of seconds left until expiry.

tiAccessType :: Lens' TokenInfo (Maybe Text) Source #

The access type granted with this token. It can be offline or online.

tiScope :: Lens' TokenInfo (Maybe Text) Source #

The space separated list of scopes granted to this token.

tiVerifiedEmail :: Lens' TokenInfo (Maybe Bool) Source #

Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.

tiUserId :: Lens' TokenInfo (Maybe Text) Source #

The obfuscated user id.

tiTokenHandle :: Lens' TokenInfo (Maybe Text) Source #

The token handle associated with this token.

tiIssuedTo :: Lens' TokenInfo (Maybe Text) Source #

To whom was the token issued to. In general the same as audience.

JWK

data JWK Source #

Instances

Eq JWK Source # 

Methods

(==) :: JWK -> JWK -> Bool #

(/=) :: JWK -> JWK -> Bool #

Data JWK Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JWK -> c JWK #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JWK #

toConstr :: JWK -> Constr #

dataTypeOf :: JWK -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c JWK) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JWK) #

gmapT :: (forall b. Data b => b -> b) -> JWK -> JWK #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JWK -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JWK -> r #

gmapQ :: (forall d. Data d => d -> u) -> JWK -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JWK -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JWK -> m JWK #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JWK -> m JWK #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JWK -> m JWK #

Show JWK Source # 

Methods

showsPrec :: Int -> JWK -> ShowS #

show :: JWK -> String #

showList :: [JWK] -> ShowS #

Generic JWK Source # 

Associated Types

type Rep JWK :: * -> * #

Methods

from :: JWK -> Rep JWK x #

to :: Rep JWK x -> JWK #

ToJSON JWK Source # 
FromJSON JWK Source # 
type Rep JWK Source # 
type Rep JWK = D1 (MetaData "JWK" "Network.Google.OAuth2.Types.Product" "gogol-oauth2-0.1.1-KGz5PCsEbcc16FChzZzpD7" True) (C1 (MetaCons "JWK'" PrefixI True) (S1 (MetaSel (Just Symbol "_jKeys") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [JWKKeysItem]))))

jwk :: JWK Source #

Creates a value of JWK with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

JWKKeysItem

data JWKKeysItem Source #

Instances

Eq JWKKeysItem Source # 
Data JWKKeysItem Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JWKKeysItem -> c JWKKeysItem #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JWKKeysItem #

toConstr :: JWKKeysItem -> Constr #

dataTypeOf :: JWKKeysItem -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c JWKKeysItem) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JWKKeysItem) #

gmapT :: (forall b. Data b => b -> b) -> JWKKeysItem -> JWKKeysItem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JWKKeysItem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JWKKeysItem -> r #

gmapQ :: (forall d. Data d => d -> u) -> JWKKeysItem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JWKKeysItem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JWKKeysItem -> m JWKKeysItem #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JWKKeysItem -> m JWKKeysItem #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JWKKeysItem -> m JWKKeysItem #

Show JWKKeysItem Source # 
Generic JWKKeysItem Source # 

Associated Types

type Rep JWKKeysItem :: * -> * #

ToJSON JWKKeysItem Source # 
FromJSON JWKKeysItem Source # 
type Rep JWKKeysItem Source # 

jwkKeysItem :: JWKKeysItem Source #

Creates a value of JWKKeysItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

UserInfoplus

data UserInfoplus Source #

Instances

Eq UserInfoplus Source # 
Data UserInfoplus Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UserInfoplus -> c UserInfoplus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UserInfoplus #

toConstr :: UserInfoplus -> Constr #

dataTypeOf :: UserInfoplus -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UserInfoplus) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UserInfoplus) #

gmapT :: (forall b. Data b => b -> b) -> UserInfoplus -> UserInfoplus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UserInfoplus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UserInfoplus -> r #

gmapQ :: (forall d. Data d => d -> u) -> UserInfoplus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UserInfoplus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UserInfoplus -> m UserInfoplus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UserInfoplus -> m UserInfoplus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UserInfoplus -> m UserInfoplus #

Show UserInfoplus Source # 
Generic UserInfoplus Source # 

Associated Types

type Rep UserInfoplus :: * -> * #

ToJSON UserInfoplus Source # 
FromJSON UserInfoplus Source # 
type Rep UserInfoplus Source # 

userInfoplus :: UserInfoplus Source #

Creates a value of UserInfoplus with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

uiHd :: Lens' UserInfoplus (Maybe Text) Source #

The hosted domain e.g. example.com if the user is Google apps user.

uiEmail :: Lens' UserInfoplus (Maybe Text) Source #

The user's email address.

uiLink :: Lens' UserInfoplus (Maybe Text) Source #

URL of the profile page.

uiLocale :: Lens' UserInfoplus (Maybe Text) Source #

The user's preferred locale.

uiGivenName :: Lens' UserInfoplus (Maybe Text) Source #

The user's first name.

uiFamilyName :: Lens' UserInfoplus (Maybe Text) Source #

The user's last name.

uiPicture :: Lens' UserInfoplus (Maybe Text) Source #

URL of the user's picture image.

uiGender :: Lens' UserInfoplus (Maybe Text) Source #

The user's gender.

uiName :: Lens' UserInfoplus (Maybe Text) Source #

The user's full name.

uiVerifiedEmail :: Lens' UserInfoplus Bool Source #

Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.

uiId :: Lens' UserInfoplus (Maybe Text) Source #

The obfuscated ID of the user.