C# Class System.Net.Http.MembershipAuthenticationHandler

Authenticates the ongoing request using Membership and Forms Authentication cookie. Grabs the forms authentication ticket token from the cookie header and performs the authentication due to WebApi requirement for ASP.NET we're also suppressing Forms Redirect by leveraging aspnet.suppressformsredirect Package.
Inheritance: ControllerFilteredMessageProcessingHandler
Mostra file Open project: WindowsAzure-Toolkits/wa-toolkit-wp-nugets

Protected Methods

Method Description
ProcessRequestHandler ( HttpRequestMessage request, CancellationToken cancellationToken ) : HttpRequestMessage

Performs Membership Authentication of the on going request. Turns Membership authentication into mandatory.

Private Methods

Method Description
Unauthorized ( ) : void

Method Details

ProcessRequestHandler() protected method

Performs Membership Authentication of the on going request. Turns Membership authentication into mandatory.
protected ProcessRequestHandler ( HttpRequestMessage request, CancellationToken cancellationToken ) : HttpRequestMessage
request HttpRequestMessage Ongoing request
cancellationToken System.Threading.CancellationToken Async Cancellation token
return HttpRequestMessage