Firebase.Auth.OAuthProvider

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

Summary

Public static functions

GetCredential(string providerId, string idToken, string accessToken)
Generate a credential for an OAuth2 provider.
GetCredential(string providerId, string idToken, string rawNonce, string accessToken)
Generate a credential for an OAuth2 provider.

Public static functions

GetCredential

Credential GetCredential(
  string providerId,
  string idToken,
  string accessToken
)

Generate a credential for an OAuth2 provider.

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

GetCredential

Credential GetCredential(
  string providerId,
  string idToken,
  string rawNonce,
  string accessToken
)

Generate a credential for an OAuth2 provider.

Details
Parameters
providerId
Name of the OAuth2 provider.
idToken
The authentication token (OIDC only).
rawNonce
The raw nonce associated with the Auth credential being created.
accessToken
The access token associated with the Auth credential to be created, if available. This value may be null.