Forum Discussion
KvDaalen
Mar 11, 2025Copper Contributor
MS Teams access token signature is invalid
I am trying to validate an access token from ms teams in my backend application. The validation fails because the siganture of the token is invalid. This is how I obtain the token: export class M...
KvDaalen
Mar 13, 2025Copper Contributor
I tried to verify using the key set at https://login.windows.net/common/discovery/keys.
This the jwks_url from
https://sts.windows.net/TENANT_ID/.well-known/openid-configuration.
The validation also fails with this key set.
I notice that the signature of the token is marked as not valid in JWT.io.
Prasad_Das-MSFT
Microsoft
Mar 17, 2025Hi KvDaalen , could you please check the resolutions provided in below two threads and let us know if that helps?
azure - Invalid Signature when generate bearer token - Stack Overflow
Troubleshooting “Invalid Signature” Errors in Signed JWTs with Microsoft Azure AD | by Anuj Pachauri | Medium