Azure API Manager
Authentication-managed-identity policy
Use the authentication-managed-identity policy to authenticate with a backend service using the managed identity. This policy essentially uses the managed identity to obtain an access token from Microsoft Entra ID for accessing the specified resource. After successfully obtaining the token, the policy will set the value of the token in the Authorization header using the Bearer scheme. API Management caches the token until it expires.
Both system-assigned identity and any of the multiple user-assigned identities can be used to request a token. If client-id is not provided, system-assigned identity is assumed. If the client-id variable is provided, token is requested for that user-assigned identity from Microsoft Entra ID.
<authentication-managed-identity resource="resource" client-id="clientid of user-assigned identity" output-token-variable-name="token-variable" ignore-error="true|false"/>
- resource : String. The application ID of the target web API (secured resource) in Microsoft Entra ID. Policy expressions are allowed.
- client-id : String. The client ID of the user-assigned identity in Microsoft Entra ID. Policy expressions aren't allowed.
- output-token-variable-name : String. Name of the context variable that will receive token value as an object of type string. Policy expressions aren't allowed.
- ignore-error Boolean. If set to true, the policy pipeline continues to execute even if an access token isn't obtained.
APIS
Produits
Vous devez déclarer les produits qui sont mis à disposition via l'APIM. Ensuite vous pourrez rattacher les APIs déclarées à ce produit pour procéder à la publication.
Déclaration des API
C'est ici que vous allez pouvoir déclarer les API sous management.
Pour chaque API, vous disposez d'un configuration au niveau API ou au niveau opération.
Commentaires
Enregistrer un commentaire