ExtendedMembershipProvider::GetUserIdFromOAuth Method

When overridden in a derived class, returns the user ID for the specified OAuth or OpenID provider and provider user ID.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

virtual int GetUserIdFromOAuth(
	String^ provider, 
	String^ providerUserId


Type: System::String
The name of the OAuth or OpenID provider.
Type: System::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.

Return Value

Type: System::Int32

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