Using Aspneidentity, how to override Identity cookie configuration in ASP.NET 5


+1 vote
asked Feb 3, 2016 by wrenchdepao (740 points)
I'm trying to implement multi tenancy based on first folder segment of request url. Can somebody tell me how can I achieve this task programatically

4 Answers

+1 vote
answered Apr 5, 2016 by yvx4707 (1,090 points)
selected Apr 6, 2016 by hfr_idea
 
Best answer

Create an authentication ticket for the user (an encrypted cookie) .
commented Apr 6, 2016 by hfr_idea (300 points)
NET Identity implements this check as part of its SecurityStampValidator
0 votes
answered Feb 6, 2016 by Cormany (1,030 points)

If you want to override it you can just add your own connection string in web.
NET Identity and the minimal code required to set up cookie based authentication. This library should serve your goal well ASP.NET Identity Stripped Bare - MVC Part 2 - Ben Foster luck
+1 vote
answered Mar 4, 2016 by Version (1,090 points)

Sign In Async method called when signing in an identity and creating the cookie.
For example setting the cookie domain to. You may wish to adjust this to have cookies available to any host in your domain. The browser will only serve the cookie to a matching host name.
0 votes
answered Apr 5, 2016 by elion_9329 (980 points)
I started with more than eight solutions to this problem. If you're looking for something to do phone interviews with, check Understanding the Forms Authentication Ticket and Cookie
commented Apr 6, 2016 by Object_B (210 points)
How's the weather in England

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...