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

ClientRedirectUri wrongly cached and returned

Abierto
#16 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Bicep
Estrellas
129
Forks
79
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el endpoint de register y su acción de política set-cache; después, reproduce la secuencia inspector-first y VS Code OAuth descrita en el issue. Verifica el flujo cuando VS Code no activa el registro y confirma que cada sesión OAuth recibe su propia URI de redirección, en lugar de un valor almacenado previamente en caché.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, vscode
Área
api, authentication, cloud
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.