Problems with the SignInManager method PasswordSignInAsync

Oscar Widegren 0 Reputation points
2023-11-26T22:08:19.0366667+00:00

Hello, I have a server-side Blazor application using framework net6.0. I do try to implement an login page. I have implemented an AuthenticationService and i am using the SignInManager. I can login and i am using the PasswordSignInAsync method. But at a successful log in atempt do the PasswordSignInAsync method throw a System.InvalidOperationException. If the log in atempt failed non exception is thrown. What can i do, to fix the issue?

best regards!

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
739 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,060 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,650 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Oscar Widegren 0 Reputation points
    2023-11-26T23:59:00.8633333+00:00

    I might have found a solution. It seems to work with the CheckPasswordSignInAsync().


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.