Let’s say I have different backend services exposing their api in azure api management (apim). The different services rely on different security methodologies, e.g. jwt tokens and subscription key. The backend developers specify these differences and upload them to apim using the OpenApi Spec (OAS). Then I find out that Security definitions are ignored so where would the developer have to specify this information? In descriptions instead? Or what is the proper way of conveying security information in apim.
In addition, the apim can have policies set regarding security. These policies are not exposed in OAS either. With the exception of the subscription key, however this is just default behaviour even if one disables the subscription required tag in the api settings in apim, the subscription key is still present in OAS.
So how do one go about informing users about the backend services security and the apims security when it is not present in OAS? Is there some configuration that I am missing?
The idea for my apim is to have different suppliers of backend services so they could have different security levels - It can be specified in OAS - but will not give me anything in the exported version from apim.
In addition, I as an owner of apim will set some security settings - which will still not be present in OAS. So what should the consumer do to understand how to use the backend endpoints exposed in the downloaded OAS’s?


