DEV Community

Discussion on: Using Spring Security with Azure Active Directory

Collapse
 
ikwattro profile image
Christophe Willemsen • Edited

Thanks for this wonderful blog post Julien. We had to check the ID Tokens here

img

in order to have the full integration working. Without that it was throwing the following exception :

com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS240002: Input id_token cannot be used as 'urn:ietf:params:oauth:grant-type:jwt-bearer' grant.\r\nTrace ID: 5c2df3b6-23d6-44b8-8c3d-37c6777d6000\r\nCorrelation ID: a5c7ee8d-90da-457d-8e3c-739faadfeed5\r\nTimestamp: 2019-09-10 08:35:44Z","error":"invalid_request"}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
jdubois profile image
Julien Dubois

Thanks Christophe!! Yes you are totally correct! I don't understand, I remember perfectly well to have put this in my article, but it doesn't show up. Let me correct this ASAP!!!

Collapse
 
jdubois profile image
Julien Dubois

It's fixed, thanks again Christophe!