firebase::auth::OAuthProvider

#include <credential.h>

OAuth2.0+UserInfo auth provider (OIDC compliant and non-compliant).

Summary

Public static functions

GetCredential(const char *provider_id, const char *id_token, const char *access_token)
Generate a credential for an OAuth2 provider.
GetCredential(const char *provider_id, const char *id_token, const char *raw_nonce, const char *access_token)
Generate a credential for an OAuth2 provider.

Public static functions

GetCredential

CredentialGetCredential(constchar*provider_id,constchar*id_token,constchar*access_token)

Generate a credential for an OAuth2 provider.

Details
Parameters
provider_id
Name of the OAuth2 provider TODO(jsanmiya) add examples.
id_token
The authentication token (OIDC only).
access_token
TODO(jsanmiya) add explanation (currently missing from Android and iOS implementations).

GetCredential

CredentialGetCredential(constchar*provider_id,constchar*id_token,constchar*raw_nonce,constchar*access_token)

Generate a credential for an OAuth2 provider.

Details
Parameters
provider_id
Name of the OAuth2 provider.
id_token
The authentication token (OIDC only).
raw_nonce
The raw nonce associated with theAuth credential being created.
access_token
The access token associated with theAuth credential to be created, if available. This value may be null.

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 2024-01-23 UTC.