Azure-Samples / Azure-Samples/remote-mcp-apim-functions-python
JWT has an invalid signature
- Lenguaje dominante
- Bicep
- Estrellas
- 129
- Forks
- 79
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The access token stored in the APIM cache which is mapped to session key has an invalid signature. Though the JWT itself is valid, however, does not have any valid signature and it is causing the issue at various downstream levels where JWT validation failing.


Further using the token in exchange flows through MSAL or Azure.Identity also deems the signature invalid -

Is it because we are assigned APIMGatewayURL as an issuer while the issuer in the token is different (https://sts.windows.net/tenantId) ?
@prjhawar @jukasper - Kindly help with this issue.
Guía de contribución
Línea de trabajo
No se especifica ningún archivo fuente, prueba ni punto de entrada. Empieza comparando la configuración del issuer de APIM con los claims de issuer y signature del token almacenado en caché, y después sigue la validación a través de MSAL o Azure.Identity; se considera terminado cuando se haya identificado el issuer/signature mismatch y exista un fix confirmado para la configuración o el flujo afectado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- azure
- Área
- api, authentication, cloud, security
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 20/100