{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- | -- Module : Network.Google.OAuth2.Types -- Copyright : (c) 2015 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 :: Service oAuth2Service = defaultService (ServiceId "oauth2:v2") "www.googleapis.com" -- | View your basic profile info userinfoProfileScope :: OAuthScope userinfoProfileScope = "https://www.googleapis.com/auth/userinfo.profile"; -- | Know your basic profile info and list of people in your circles. plusLoginScope :: OAuthScope plusLoginScope = "https://www.googleapis.com/auth/plus.login"; -- | View your email address userinfoEmailScope :: OAuthScope userinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"; -- | Know who you are on Google plusMeScope :: OAuthScope plusMeScope = "https://www.googleapis.com/auth/plus.me";