0

I´m adding an inbound processing policy rule to apply all Azure API Service methods. Using policies wizard I find authentication-basic that I wrote in next lines.

<inbound>
     <base />
     <authentication-basic username="myUserName" password="myPassword" />
</inbound>

So, Why it doesn´t apply when I invoke from Postman using Basic Auth. Allways the response is 200-OK, and it doesn´t mather if I change the user and password. Allways the response it's OK. I check the header request from client and It´s adding the correct Authentication user:password

1 Answers1

0

This policy is used to add basic credentials to a call APIM will make to a backend to fulfill the request. If you want to check credentials sent by client to APIM you could use policy expressions to look into context.Request.Headers to see if auth header is present. Like in this question: API Management Basic Authentication

Vitaliy Kurokhtin
  • 7,205
  • 1
  • 19
  • 18