ASP.NET Core Identity invalid token on confirmation email

前端 未结 7 1526
没有蜡笔的小新
没有蜡笔的小新 2021-01-01 12:11

This is a very similar question to this aspnet identity invalid token on confirmation email but the solutions are not valid because I am using the new ASP.NET Core 1.0 that

7条回答
  •  心在旅途
    2021-01-01 12:44

    I had a similar issue and I was encoding my token but it kept on failing validation and the problem turned out to be this : options.LowercaseQueryStrings = true; Do not set true on options.LowercaseQueryStrings this alters the validation token's integrity and you will get Invalid Token Error.

    // This allows routes to be in lowercase
    services.AddRouting(options =>
    {
         options.LowercaseUrls = true;
          options.LowercaseQueryStrings = false;
    });
    
    

提交回复
热议问题