The newest version of Google Identity Toolkit has been released as Firebase Authentication. It includes upgraded client SDKs, open source UI libraries, session management and integrated email sending service for forgotten password flows.

New projects should use Firebase Authentication. To migrate an existing project from Identity Toolkit to Firebase Authentication, see the migration guide.

GITClient Class

GITClient Class Reference

Overview

A singleton class that works as client for Identity Toolkit.

Inherits NSObject.

Instance Method Summary

(void) - setAdditionalScopes:forProvider:
 Adds additional scopes for an identity provider. More...
 
(NSArray *) - additionalScopesForProvider:
 Gets additional scopes for an identity provider, could be nil. More...
 

Class Method Summary

(GITClient *) + sharedInstance
 Returns a shared GITClient instance. More...
 
(BOOL) + handleOpenURL:sourceApplication:annotation:
 Handles callback from system browser. More...
 

Properties

NSString * apiKey
 The API key of the Identity Toolkit project in Google Cloud Console. More...
 
NSString * widgetURL
 Where the Identity Toolkit Javascript widget is hosted. More...
 
NSArray * providers
 An array of provider IDs to support on this app. More...
 
BOOL useGooglePlus
 Whether to request access to social features for Google users. More...
 
id< GITClientDelegatedelegate
 The object to be notified at the end of an authentication operation. More...
 

Method Detail

+ (GITClient *) sharedInstance

Returns a shared GITClient instance.

+ (BOOL) handleOpenURL: (NSURL *)  url
sourceApplication: (NSString *)  sourceApplication
annotation: (id)  annotation 

Handles callback from system browser.

- (void) setAdditionalScopes: (NSArray *)  scopes
forProvider: (NSString *)  providerId 

Adds additional scopes for an identity provider.

Note that this only works for Google and Facebook.

Parameters
scopesAn NSArray of scopes as NSStrings.
providerIdThe ID of the identity provider.
- (NSArray *) additionalScopesForProvider: (NSString *)  providerId

Gets additional scopes for an identity provider, could be nil.

Property Documentation

- (NSString*) apiKey
readwritenonatomiccopy

The API key of the Identity Toolkit project in Google Cloud Console.

- (NSString*) widgetURL
readwritenonatomiccopy

Where the Identity Toolkit Javascript widget is hosted.

- (NSArray*) providers
readwritenonatomicstrong

An array of provider IDs to support on this app.

- (BOOL) useGooglePlus
readwritenonatomicassign

Whether to request access to social features for Google users.

- (id<GITClientDelegate>) delegate
readwritenonatomicweak

The object to be notified at the end of an authentication operation.