FirebaseAuth Framework Reference Stay organized with collections Save and categorize content based on your preferences.
FIROAuthProvider
@interfaceFIROAuthProvider:NSObject<FIRFederatedAuthProvider>A concrete implementation ofAuthProvider for generic OAuth Providers.
Array used to configure the OAuth scopes.
Declaration
Objective-C
@property(nonatomic,copy,nullable)NSArray<NSString*>*scopes;Dictionary used to configure the OAuth custom parameters.
Declaration
Objective-C
@property(nonatomic,copy,nullable)NSDictionary<NSString*,NSString*>*customParameters;The provider ID indicating the specific OAuth provider this OAuthProvider instance represents.
Declaration
Objective-C
@property(nonatomic,copy,readonly)NSString*_NonnullproviderID;Declaration
Objective-C
+(nonnullFIROAuthProvider*)providerWithProviderID:(nonnullNSString*)providerID;Parameters
providerIDThe provider ID of the IDP for which this auth provider instance will beconfigured.
Return Value
An instance of
OAuthProvidercorresponding to the specified provider ID.Declaration
Objective-C
+(nonnullFIROAuthProvider*)providerWithProviderID:(nonnullNSString*)providerIDauth:(nonnullFIRAuth*)auth;Parameters
providerIDThe provider ID of the IDP for which this auth provider instance will beconfigured.
authThe auth instance to be associated with the
OAuthProviderinstance.Return Value
An instance of
OAuthProvidercorresponding to the specified provider ID.Creates an
AuthCredentialfor the OAuth 2 provider identified by provider ID, ID token, and access token.Declaration
Objective-C
+(nonnullFIROAuthCredential*)credentialWithProviderID:(nonnullNSString*)providerIDIDToken:(nonnullNSString*)IDTokenaccessToken:(nullableNSString*)accessToken;Parameters
providerIDThe provider ID associated with the Auth credential being created.
IDTokenThe IDToken associated with the Auth credential being created.
accessTokenThe access token associated with the Auth credential be created, ifavailable.
Return Value
A
AuthCredentialfor the specified provider ID, ID token and access token.Creates an
AuthCredentialfor the OAuth 2 provider identified by provider ID using an ID token.Declaration
Objective-C
+(nonnullFIROAuthCredential*)credentialWithProviderID:(nonnullNSString*)providerIDaccessToken:(nonnullNSString*)accessToken;Parameters
providerIDThe provider ID associated with the Auth credential being created.
accessTokenThe access token associated with the Auth credential be created
Return Value
An
AuthCredential.Creates an
AuthCredentialfor that OAuth 2 provider identified by provider ID, ID token, raw nonce, and access token.Declaration
Objective-C
+(nonnullFIROAuthCredential*)credentialWithProviderID:(nonnullNSString*)providerIDIDToken:(nonnullNSString*)IDTokenrawNonce:(nullableNSString*)rawNonceaccessToken:(nullableNSString*)accessToken;Parameters
providerIDThe provider ID associated with the Auth credential being created.
IDTokenThe IDToken associated with the Auth credential being created.
rawNonceThe raw nonce associated with the Auth credential being created.
accessTokenThe access token associated with the Auth credential be created, ifavailable.
Return Value
A
AuthCredentialfor the specified provider ID, ID token and access token.Creates an
AuthCredentialfor that OAuth 2 provider identified by providerID using an ID token and raw nonce.Declaration
Objective-C
+(nonnullFIROAuthCredential*)credentialWithProviderID:(nonnullNSString*)providerIDIDToken:(nonnullNSString*)IDTokenrawNonce:(nullableNSString*)rawNonce;Parameters
providerIDThe provider ID associated with the Auth credential being created.
IDTokenThe IDToken associated with the Auth credential being created.
rawNonceThe raw nonce associated with the Auth credential being created.
Return Value
A
AuthCredential.Creates an
AuthCredentialfor the Sign in with Apple OAuth 2 provider identified by ID token, raw nonce, and full name. This method is specific to the Sign in with Apple OAuth 2 provider as this provider requires the full name to be passed explicitly.Declaration
Objective-C
+(nonnullFIROAuthCredential*)appleCredentialWithIDToken:(nonnullNSString*)IDTokenrawNonce:(nullableNSString*)rawNoncefullName:(nullableNSPersonNameComponents*)fullName;Parameters
IDTokenThe IDToken associated with the Sign in with Apple Auth credential being created.
rawNonceThe raw nonce associated with the Sign in with Apple Auth credential beingcreated.
fullNameThe full name associated with the Sign in with Apple Auth credential beingcreated.
Return Value
An
AuthCredential.This class is not meant to be initialized.
Declaration
Objective-C
-(nonnullinstancetype)init;
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-03-21 UTC.