Utpal Dutta
How to secure your deployed microservices?

You have multiple microservices.All microservices are deployed in Azure. Microservices are exposed to outside through Azure APIM. How we can secure our microservices here.

By Utpal Dutta in .NET Core on Sep 25 2023
  • Vinod Abraham
    Oct, 2023 20

    HI Utpal,
    You Can do below things to secure API in apart from Azure API Managment Security
    1) Enable Cors
    2)JWT Authentication/Any Other Token managment
    2) URI Refererer Attribute In Controller/Method Level if Somebody bypass Authentication

    Here The Filer will ensure APi should not call directly except from below urls

    public class APIRefererAuthorizeAttribute : TypeFilterAttribute
    {
    string[] origins = null;
    public APIRefererAuthorizeAttribute() : base(typeof(ApiAuthorizeFilter))
    {

    1. origins=new string[] { "https://localhost:5500/", "https://xyz.com" };
    2. Arguments = new object[] { origins };
    3. }

    }

    For Azure API Managment Level Security , please refer below articles
    https://learn.microsoft.com/en-us/azure/api-management/mitigate-owasp-api-threats

    https://dev.to/koheikawata/azure-api-management-authentication-part1-1198

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS