Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- oAuth2Service :: ServiceConfig
- userInfoProFileScope :: Proxy '["https://www.googleapis.com/auth/userinfo.profile"]
- plusLoginScope :: Proxy '["https://www.googleapis.com/auth/plus.login"]
- userInfoEmailScope :: Proxy '["https://www.googleapis.com/auth/userinfo.email"]
- plusMeScope :: Proxy '["https://www.googleapis.com/auth/plus.me"]
- data TokenInfo
- tokenInfo :: TokenInfo
- tiAudience :: Lens' TokenInfo (Maybe Text)
- tiEmail :: Lens' TokenInfo (Maybe Text)
- tiExpiresIn :: Lens' TokenInfo (Maybe Int32)
- tiAccessType :: Lens' TokenInfo (Maybe Text)
- tiScope :: Lens' TokenInfo (Maybe Text)
- tiVerifiedEmail :: Lens' TokenInfo (Maybe Bool)
- tiUserId :: Lens' TokenInfo (Maybe Text)
- tiTokenHandle :: Lens' TokenInfo (Maybe Text)
- tiIssuedTo :: Lens' TokenInfo (Maybe Text)
- data JWK
- jwk :: JWK
- jKeys :: Lens' JWK [JWKKeysItem]
- data JWKKeysItem
- jwkKeysItem :: JWKKeysItem
- jkiAlg :: Lens' JWKKeysItem Text
- jkiUse :: Lens' JWKKeysItem Text
- jkiKid :: Lens' JWKKeysItem (Maybe Text)
- jkiN :: Lens' JWKKeysItem (Maybe Text)
- jkiE :: Lens' JWKKeysItem (Maybe Text)
- jkiKty :: Lens' JWKKeysItem Text
- data UserInfoplus
- userInfoplus :: UserInfoplus
- uiHd :: Lens' UserInfoplus (Maybe Text)
- uiEmail :: Lens' UserInfoplus (Maybe Text)
- uiLink :: Lens' UserInfoplus (Maybe Text)
- uiLocale :: Lens' UserInfoplus (Maybe Text)
- uiGivenName :: Lens' UserInfoplus (Maybe Text)
- uiFamilyName :: Lens' UserInfoplus (Maybe Text)
- uiPicture :: Lens' UserInfoplus (Maybe Text)
- uiGender :: Lens' UserInfoplus (Maybe Text)
- uiName :: Lens' UserInfoplus (Maybe Text)
- uiVerifiedEmail :: Lens' UserInfoplus Bool
- uiId :: Lens' UserInfoplus (Maybe Text)
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
Instances
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.
tiIssuedTo :: Lens' TokenInfo (Maybe Text) Source #
To whom was the token issued to. In general the same as audience.
JWK
Instances
Eq JWK Source # | |
Data JWK Source # | |
Defined in Network.Google.OAuth2.Types.Product 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 # 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 # | |
Generic JWK Source # | |
ToJSON JWK Source # | |
Defined in Network.Google.OAuth2.Types.Product | |
FromJSON JWK Source # | |
type Rep JWK Source # | |
Defined in Network.Google.OAuth2.Types.Product type Rep JWK = D1 (MetaData "JWK" "Network.Google.OAuth2.Types.Product" "gogol-oauth2-0.4.0-S6BIeg93lU9Ut3r7VdeWX" True) (C1 (MetaCons "JWK'" PrefixI True) (S1 (MetaSel (Just "_jKeys") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [JWKKeysItem])))) |
JWKKeysItem
data JWKKeysItem Source #
Instances
UserInfoplus
data UserInfoplus Source #
Instances
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.
uiGivenName :: Lens' UserInfoplus (Maybe Text) Source #
The user's first name.
uiFamilyName :: Lens' UserInfoplus (Maybe Text) Source #
The user's last 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.