Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

handler invocation order

$
0
0

Hi 

Before my own AuthenticationHandler is executed I would like to execute my own DelegatingHandler (I would like to assign a session-id in my DelegatingHandler first). How can I do that? 

app.UseBasicAuthentication("Web API", ValidateUser); 

var config = new HttpConfiguration();
WebApiConfig.Register(config);          //in Register my DelegatingHandler gets registered
app.UseWebApi(config);

I already tried to set UseBasicAuthentication after UseWebApi but then the basic authentication doesn't get executed at all...


Viewing all articles
Browse latest Browse all 4737

Trending Articles



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