Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Unassigned: Provide base class for authentication filters [1432]

$
0
0
All the other filter types have base classes that help with implementing them. Authentication filters don't. Particularly for ChallengeAsync, it would be nice to have a virtual method like this:

Task<HttpResponseMessage> ChallengeAsync(HttpResponseMessage response, CancellationToken cancellationToken)
{
}

which handles decorating the action result and checking 401 for you.

Both MVC and Web API could use such a base class.
Comments: We can do this as a sample for now

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>