This project has moved. For the latest updates, please go here.

finding and accessing middlewares

Jun 30, 2015 at 11:06 PM
in an ASP.NET page, need to use owincontext to reference a particular middleware (cookie), and reference some of the configuration values used to initialize the provider at startup. For example, cookie.path, which is then used in the page script.

pointers would help.

Logically, I want to page.getowincontext().Find<AuthenticationMiddleware<Cookie>>().properties["path"} or equivalent.
Jun 30, 2015 at 11:10 PM
No, searching the pipeline is not supported.

If you had the value in your Startup class then you should save it somewhere that the page has direct access to.