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.

GITAccount Class

GITAccount Class Reference

Overview

An account passed to third-party at the end of a successful authentication.

Inherits NSObject.

Instance Method Summary

(instancetype) - initWithUserAttributes:
 Designated initializer. More...
 
(NSDictionary *) - userAttributes
 Returns an NSDictionary that has all user attributes keyed by localID, email, displayName, and photoURL. More...
 

Class Method Summary

(GITAccount *) + accountWithUserAttributes:
 Constructs a GITAccount using given NSDictionary. More...
 

Properties

NSString * localID
 The unique identifier of the user in Identity Toolkit server. More...
 
NSString * email
 User's email address. More...
 
NSString * displayName
 User's display name on the IdP's website. More...
 
NSString * photoURL
 URL of the user's photo on the IdP's website. More...
 
NSString * providerID
 The identifier of the IdP. More...
 

Method Detail

- (instancetype) initWithUserAttributes: (NSDictionary *)  dict

Designated initializer.

Parameters
dictAn NSDictionary that should include all GITAccount properties: localID, email, displayName, and photoURL. Among them, localID and email are required.
- (NSDictionary *) userAttributes

Returns an NSDictionary that has all user attributes keyed by localID, email, displayName, and photoURL.

+ (GITAccount *) accountWithUserAttributes: (NSDictionary *)  dict

Constructs a GITAccount using given NSDictionary.

Parameters
dictAn NSDictionary that should include all GITAccount properties: localID, email, displayName, and photoURL. Among them, localID and email are required.

Property Documentation

- (NSString*) localID
readwritenonatomiccopy

The unique identifier of the user in Identity Toolkit server.

- (NSString*) email
readwritenonatomiccopy

User's email address.

- (NSString*) displayName
readwritenonatomiccopy

User's display name on the IdP's website.

- (NSString*) photoURL
readwritenonatomiccopy

URL of the user's photo on the IdP's website.

- (NSString*) providerID
readwritenonatomiccopy

The identifier of the IdP.

It's the top-level domain of the provider, ex. google.com, yahoo.com.