Azure-Samples / Azure-Samples/remote-mcp-apim-functions-python

ClientRedirectUri wrongly cached and returned

Aperta
#16 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Bicep
Stelle
129
Fork
79
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When first logging in with the inspector app, and then trying to login with VScode.

I get the issue that APIM is returning the redirecturi of the inspector app, to the vs code oauth session.

A VS code oauth triggered flow, generates the following redirect uri.

![Image](https://github.com/user-attachments/assets/2da23d6f-d261-4977-a1a3-06f67976f6f7)

Which points to inspector.

--------------
EDIT: I discovered that the register endpoint is not triggered by vscode consistently. therefor a new value is not being set by the set-cache policy action. Hence if I use inspector first, then it uses that value as its already cached. Inspector always calls the register endpoint.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.