DotNet Core 3.1 MVC JWT authentication for Identity

Heinrich Ludike 26 Reputation points
2021-05-27T09:11:53.41+00:00

100194-image.png
I have an application that I am working on, we are using JWT for our WebAPI and then we have a very simple frontend. The problem I have is the moment I enable my JWTBearer in startup.cs and run my application it refuses to log in. It does not return a JWT object and I can do nothing further.

This is what my code looks like in startup.cs
100155-image.png

I think I might be missing something in startup.cs but I am unable to find it at the moment.

Microsoft Security | Microsoft Identity Manager
Developer technologies | ASP.NET Core | Other
0 comments No comments

2 answers

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

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