Thursday, July 12, 2018

Authentication in Core 2.1 WebAPI

Hi, Im learning Core 2.1, so im making a simple CRUD WebAPI with JTW Auth. I'm having problem with understanding the Authentication/Authorization process in Core 2.1. Coming from MVC5, I remember that it auto generates the Account Controller which included methods to handle the Auth using Identity. Now trying to implement the same thing in Core 2.1 but I realized that there's no auto generated code so I have to implement Auth on my own. So the problem is that there's a lot of sources on the internet for implementing JWT auth but, if i remember correctly, almost everyone said to be when i was doing MVC5 that I should not mess around with Auth process that is provided by MVC5 & Identity. Is there any was to auto generate these controllers for JWT Auth? I don't want to implement them on my own and leave a security loophole or something.

Authentication in Core 2.1 WebAPI Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team