AppServiceAuthenticationHandler.ValidateIdentity 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.
Authenticates the login token from the IOwinRequest header, if it exists, and returns a ClaimsIdentity if authentication succeeded, or false if authentication failed. If token parsing failed, returns null.
protected virtual System.Security.Claims.ClaimsIdentity ValidateIdentity(Microsoft.Owin.IOwinRequest request, Microsoft.Azure.Mobile.Server.Authentication.AppServiceAuthenticationOptions options);
abstract member ValidateIdentity : Microsoft.Owin.IOwinRequest * Microsoft.Azure.Mobile.Server.Authentication.AppServiceAuthenticationOptions -> System.Security.Claims.ClaimsIdentity
override this.ValidateIdentity : Microsoft.Owin.IOwinRequest * Microsoft.Azure.Mobile.Server.Authentication.AppServiceAuthenticationOptions -> System.Security.Claims.ClaimsIdentity
Protected Overridable Function ValidateIdentity (request As IOwinRequest, options As AppServiceAuthenticationOptions) As ClaimsIdentity
Parameters
- request
- IOwinRequest
The IOwinRequest to authenticate.
- options
- AppServiceAuthenticationOptions
Authentication options.
Returns
Returns the ClaimsIdentity if token validation succeeded. Returns null if token parsing failed for any reason.
Applies to
Azure SDK for .NET