What is the most common way to secure APIs?
What is a subscription in APIM?
What us a subscription key?
How do subscriptions work with products?
What is header name and query string for sub key?
Ocp-Apim-Subscription-key and subscription-key
How can I test out API calls?
Curl –header “Ocp-Apim-Subscription-key: <key>" https://<apim>.azure-api.net/api/path</apim></key>
or
Curl https://<apim>.azure-api.net/api/path?subscription-key=<key></key></apim>
What are certs in APIM?
What can APIM gateway check for to ensure security?
How can we verify a cert?
What is the APIM consumption tier and how does it relate to certs?
How can we check thumbprint or client cert? What would the policy statement look like?
<choose>
<when condition="@(context.Request.Certificate == null || context.Request.Certificate.Thumbprint != "desired-thumbprint")" >
<return-response> <set-status></set-status></return-response>
</when>
</choose>
How can we check thumbprint against certs uploaded to APIM? What would the policy statement look like?
<when>
</when>
How can we check the issuer and subject of a client cert?
<when condition=”@(context.Request.Certificate == null || context.Request.Certificate.Issuer != “trusted-issuer” || context.Request.Certificate.SubjectName.Name != “expected-subject-name”)” >
Command to create APIM?
az apim create