I have implemented web APIs using ado.net and uploaded in hosting, but those web APIs are not secured, anyone can access without login, and now I want to secure them with the role-based authentication how can I secure? I want to do that only a login user can access them.
How to secure web api developed with ado.net?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 5, 2020, 11:09 PM EDT
Refer this link
https://www.c-sharpcorner.com/article/how-to-use-jwt-authentication-with-web-api/
Hamid KhanRank #424 · 5.9K reputationPosted Aug 30, 2020, 9:36 PM EDT