Azure / azure-docs-sdk-java

☕️ Azure SDK for Java API documentation repository. Content here is mostly auto-generated.
https://docs.microsoft.com/java/api/?view=azure-java-stable
Creative Commons Attribution 4.0 International
57 stars 242 forks source link

Updated example for new App Registration #890

Open funkybrown opened 5 years ago

funkybrown commented 5 years ago

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.

nverbeek commented 5 years ago

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!

baumannalexj commented 5 years ago

@nverbeek thank you! How do we get the documentation updated?