As part of our Azure API Management set up we are using oAuth 2.0 combined with Active Directory.
we are using the id_token (JWT) to authenticate, which is working well.
we can request an id_token via the redirect url (microsoft login) and this token can be used to call our API successfully (validated again our API policy).
The problem occurs when we want to refresh the token.
We follow this process: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-protocols-oauth-code#refreshing-the-access-tokens
As you can see, i get an id_token back (because the scope openid is passed) but the problem is, the id_token is malformed.
Instead of making up of 3 parts e.g. AAAA.BBBB.CCCC
The id_token returned, only has 2 parts (missing the signature) e.g. AAAA.BBBB.
when using this id_token to authenticate, it obviously fails :(
