{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- | -- Module : Network.Google.OAuth2.Types -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.Google.OAuth2.Types ( -- * Service Configuration oAuth2Service -- * OAuth Scopes , userInfoProFileScope , plusLoginScope , userInfoEmailScope , plusMeScope -- * TokenInfo , TokenInfo , tokenInfo , tiAudience , tiEmail , tiExpiresIn , tiAccessType , tiScope , tiVerifiedEmail , tiUserId , tiTokenHandle , tiIssuedTo -- * JWK , JWK , jwk , jKeys -- * JWKKeysItem , JWKKeysItem , jwkKeysItem , jkiAlg , jkiUse , jkiKid , jkiN , jkiE , jkiKty -- * UserInfoplus , UserInfoplus , userInfoplus , uiHd , uiEmail , uiLink , uiLocale , uiGivenName , uiFamilyName , uiPicture , uiGender , uiName , uiVerifiedEmail , uiId ) where import Network.Google.OAuth2.Types.Product import Network.Google.OAuth2.Types.Sum import Network.Google.Prelude -- | 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. oAuth2Service :: ServiceConfig oAuth2Service = defaultService (ServiceId "oauth2:v2") "www.googleapis.com" -- | View your basic profile info userInfoProFileScope :: Proxy '["https://www.googleapis.com/auth/userinfo.profile"] userInfoProFileScope = Proxy; -- | Know the list of people in your circles, your age range, and language plusLoginScope :: Proxy '["https://www.googleapis.com/auth/plus.login"] plusLoginScope = Proxy; -- | View your email address userInfoEmailScope :: Proxy '["https://www.googleapis.com/auth/userinfo.email"] userInfoEmailScope = Proxy; -- | Know who you are on Google plusMeScope :: Proxy '["https://www.googleapis.com/auth/plus.me"] plusMeScope = Proxy;