SimpleMembershipProvider.GetUserIdFromOAuth(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for