Mittwoch, 26. Februar 2014

Diagram: How UserAgent Interacts with OWIN authentication middleware (Draft)

 
 The interaction between an user agent e.g. ie11 and an OWIN authentication middleware enabled web server depends on the specific Controller that is called by the user agent.
 
When the OWIN authentication middleware detects an request to a Web.API based Controller that has no cookie resp. a cookie without any bearer token Information it sends back a 401 unauthorized status code to the browser that handles this issue with it's client side code.
 
If there is a call to an ASP.NET MVC Controller the 401 unauthorized status code is converted into 302 that is sent back to the browser with the URL for the login page.
 
Please refer to this excellent description published by Microsoft:
 
 
 

Keine Kommentare:

Kommentar veröffentlichen