Azure APIM get-authorization-context returns cached expired token

Ed 0 Reputation points
2025-01-11T20:59:43.0366667+00:00

I have a credential provider with two connections setup identically, however the original connection began to return an expired token a month ago and has been doing that ever since with the exact same issued and expiration date of when this problem first started. Here is the snippet of the APIM trace from the problematic connection:

User's image

What I've noticed comparing the traces between the connections is the non-problematic connection is taking additional steps to obtain the managed identity token, then sending the request to the authorization provider gateway. I've deleted the credential provider and connection and recreated with the same name and it's still returning the same dates. Any input would be greatly appreciated. Thanks!

The inbound policy. User's image

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,248 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.