Updated example for new App Registration
Following the example using the legacy example I can get my spring boot example to work, however when using the new App registration it seems to not add the same permissions in the manifest and this results in an com.microsoft.aad.adal4j.AuthenticationException: {"error_description":"AADSTS240002: Input id_token cannot be used as 'urn:ietf:params:oauth:grant-type:jwt-bearer' grant error. Any assistance with this or update version would be appreciated :)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 2cf5423d-6c4c-26a8-89bb-7686794716d0
- Version Independent ID: 734cd358-3dfb-14cd-ee3d-5ce54be8d613
- Content: How to use the Spring Boot Starter for Azure Active Directory
- Content Source: docs-ref-conceptual/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory.md
- Service: active-directory
- GitHub Login: @rmcmurray
- Microsoft Alias: robmcm
I had this same problem. I had to edit the Manifest of the app registration in Azure and set the following properties:
"oauth2AllowIdTokenImplicitFlow": true, "oauth2AllowImplicitFlow": true,
Once I did that, the sample started working. Hope this helps!
@nverbeek thank you! How do we get the documentation updated?