c# - Cookie-less temporary authentication in ASP.NET MVC -


at moment i'm working asp.net mvc 5 , new identity 2 framework authentication , authorization. based on these principals implemented custom claim-based system able check if user action permitted passing area , action (e.g area reservation , action create).

now have requirement extend system using in multi-tenant application differentiate tenants url sub path. (e.g. https://www.mydomain.com/tenant1/{controller}/{action}.

the identity framework imho not able set cookies based on specific url sub path. on every place tried hook in , set cookie path failed.

the second use case have, granting user temporary set of actions without need logout afterwards. should work if cookies disabled.

i decided rewrite authentication system scratch fulfill needs. whats best way implement cookie less temporary login. story: user wants place reservation. therefore must authenticated navigate through wizard (2 or 3 async server requests). after finishing wizard user must logged out without interaction. created tokens must invalidated (used kiosk mode).

what kind of principles , best practices exists scenario? , experience similar use case?

look @ membershipreboot project. supports multi-tenant mode out of box. membershipreboot

writing custom authentication framework last thing should do, unless primary business.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -