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 * | |
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
-
dict An 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
-
dict An NSDictionary that should include all GITAccount properties: localID, email, displayName, and photoURL. Among them, localID and email are required.
Property Documentation
|
readwritenonatomiccopy |
The unique identifier of the user in Identity Toolkit server.
|
readwritenonatomiccopy |
User's email address.
|
readwritenonatomiccopy |
User's display name on the IdP's website.
|
readwritenonatomiccopy |
URL of the user's photo on the IdP's website.
|
readwritenonatomiccopy |
The identifier of the IdP.
It's the top-level domain of the provider, ex. google.com, yahoo.com.