SimpleMembershipProvider.GetUserIdFromOAuth(String, String) Method

Definition

Returns the user ID for the specified OAuth or OpenID provider and provider user ID.

public override int GetUserIdFromOAuth (string provider, string providerUserId);
override this.GetUserIdFromOAuth : string * string -> int
Public Overrides Function GetUserIdFromOAuth (provider As String, providerUserId As String) As Integer

Parameters

provider
String

The name of the OAuth or OpenID provider.

providerUserId
String

The OAuth or OpenID provider user ID. This is not the user ID of the user account, but the user ID on the OAuth or Open ID provider.

Returns

The user ID, or -1 if there is no user ID associated with the OAuth or Open ID provider user ID.

Applies to