Hi All,
I am trying to implement Asp.net Identity in my web (MVC5) application. I am manually creating Claims Identity and Principal in User Authentication method only if the user exist (Authentication.cs). After that I am assigning the Claims Principal to current
HttpContext request and also I am able to see the User.Identity in the same request. But if I redirect to different action/page then the identity values are not existing in the HttpContext.Current.User.Identity.
I am not sure what I missed here, please help me to fix this issue.
//OWIN startup.cs
[assembly: OwinStartup(typeof(Web.Startup))]
namespace Web
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
// For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
...
Go to the complete details ...