firebase::auth::FederatedOAuthProvider

#include <auth.h>

Authenticates with Federated OAuth Providers via the firebase::auth::Auth and firebase::auth::User classes.

Summary

Once configured with a provider id, and with OAuth scope and OAuth custom parameters via an FedeartedOAuthProviderData structure, an object of this class may be used via Auth::SignInWithProvider to sign-in users, or via User::LinkWithProvider and User::ReauthenticateWithProvider for cross account linking and user reauthentication, respectively.

Inheritance

Inherits from: firebase::auth::FederatedAuthProvider

Constructors and Destructors

FederatedOAuthProvider()
Constructs an unconfigured provider.
FederatedOAuthProvider(const FederatedOAuthProviderData & provider_data)
Constructs a FederatedOAuthProvider preconfigured with provider data.
~FederatedOAuthProvider()

Friend classes

::firebase::auth::Auth
friend class

Public functions

SetProviderData(const FederatedOAuthProviderData & provider_data)
void
Configures the provider with OAuth provider information.

Friend classes

::firebase::auth::Auth

friend class ::firebase::auth::Auth

Public functions

FederatedOAuthProvider

 FederatedOAuthProvider()

Constructs an unconfigured provider.

FederatedOAuthProvider

 FederatedOAuthProvider(
  const FederatedOAuthProviderData & provider_data
)

Constructs a FederatedOAuthProvider preconfigured with provider data.

Details
Parameters
provider_data
Contains the federated provider id and OAuth scopes and OAuth custom parameters required for user authentication and user linking.

SetProviderData

void SetProviderData(
  const FederatedOAuthProviderData & provider_data
)

Configures the provider with OAuth provider information.

Details
Parameters
provider_data
Contains the federated provider id and OAuth scopes and OAuth custom parameters required for user authentication and user linking.

~FederatedOAuthProvider

 ~FederatedOAuthProvider() override