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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted Nov 5, 2024, 1:56 AM EST
Hi Kiran,
do refer article below
https://www.c-sharpcorner.com/article/jwt-token-authentication-using-the-net-core-6-web-api/
Kiran KumarRank #1,268 · 1.4K reputationPosted Nov 5, 2024, 4:44 AM EST
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
Vishal YelveRank #178 · 13.6K reputationPosted Nov 5, 2024, 4:48 AM EST
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