This project has moved and is read-only. For the latest updates, please go here.

finding and accessing middlewares

Jul 1, 2015 at 12:06 AM
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.
Jul 1, 2015 at 12:10 AM
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.