gogol-oauth2-0.0.1: Google OAuth2 SDK.

Copyright(c) 2015 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

Contents

Description

Lets you access OAuth2 protocol related APIs.

See: Google OAuth2 API Reference

Synopsis

Service Configuration

oAuth2Service :: Service 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.

API Declaration

type OAuth2API = UserInfoV2MeGetResource :<|> (UserInfoGetResource :<|> (GetCertForOpenIdConnectMethod :<|> TokenInfoMethod)) Source

Represents the entirety of the methods and resources available for the Google OAuth2 API service.

Methods

oauth2.getCertForOpenIdConnect

oauth2.tokeninfo

Resources

oauth2.userinfo.get

oauth2.userinfo.v2.me.get

Types

TokenInfo

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

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

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

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.