When does routing occur in the pipeline?

When is routing performed in the ASP.NET MVC pipeline?

ASP.NET Application Lifecycle Overview for IIS 7.0

Is he in step number 2 (Performing URL Mapping)?

I intend to have multiple routes with id

"Activate / {ID}"

"forgotpassword / {ID}"

I would like to have access to the identifier at an early stage in pipline in step 4 - AuthenticateRequest. So that I can transfer the authentication token through the identification part of the URL to my user authentication module.

So, can I access the id property in my custom authentication module, or do I need to manually extract it from the request URL?

Thank you for your help,

Duncan

+3
2

, UrlRouting 9 - PostResolveRequestCache.

, AuthenticateRequest, 4.

UrlRoutingModule

Init() , PostResolveRequestCache.

, , URL- .

+2

, , - - . javascript, .

, - httpmodule, , . . http://msdn.microsoft.com/en-us/magazine/dd347546.aspx#id0070044

+1

Source: https://habr.com/ru/post/1685993/


All Articles