Implementing JWT Authentication and Claim authorization for apis in Fframework 4.0
Loading
Implementing JWT Authentication and Claim authorization for apis in Fframework 4.0
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Nov 5, 2024, 6:56 AM
Hi Kiran,
do refer article below
https://www.c-sharpcorner.com/article/jwt-token-authentication-using-the-net-core-6-web-api/
Vishal YelvePosted Nov 5, 2024, 9:48 AM
Hi Kiran,
do refer to these articles which are on MVC Web API. I hope this might help you
https://www.c-sharpcorner.com/article/how-to-use-jwt-authentication-with-web-api/
https://medium.com/@faazlaeeq/implement-jwt-authentication-in-asp-net-mvc-413fdecca052
Kiran KumarPosted Nov 5, 2024, 9:44 AM
Hi Visal
Thanks for the reply I see your code and it will work fine for core environment
But I need to implement the feature in Framework 4.8 Not in core
Here is my requirement
I have dotnet mvc which is built in Framework 4.8 version it has only app_start files not startup file
Next, I need to consume data which is stored in the SQL server database through API from MVC app
Both apps should be implemented in Framework 4.8 version
You can share the code if you have else I can go for core but I need to rewrite the code fully
Again, when implementing this feature do we need to create same data access models for authentication and authorization same in MVC and WebAPI app
From which app actually it creates for users and manages, I know that JWT created from API but how that will be stored and maintained in both apps