Azure-Samples / ms-identity-java-webapp

A Java web application calling Microsoft graph that is secured using the Microsoft identity platform
MIT License
118 stars 105 forks source link

Reply URL error #39

Closed kboger closed 4 years ago

kboger commented 4 years ago

Hi there, I'm getting the following error: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application.

I'm using the following in Azure redirect URIs: https://localhost:8080/msal4jsample/secure/aad https://localhost:8080/msal4jsample/graph/me

i tried it with 8443 and 8080 and get the same error.

Error response: https://login.microsoftonline.com/common/reprocess?ctx=rQIIACoDMi4wOiQ0NTNhMzk3OS0yOGJlLTQzZWItOTk4Ni1iZmUzMzBlNzY2ZmJyEgoQsKEKMVJLl0CFam935sxs_rgBAdABAdoCD09BdXRoMkF1dGhvcml6ZZoDBkMzUnRtbbIDBmNvbW1vbroDJDFhNjNjMjMyLTk4ZjgtNDAwYS1iZjhkLTRlNmRiZDljYjY4N8oDDm9wZW5pZCBwcm9maWxl2AMB0AQB6gQCMAX4BAGiBRIKEPtyIs-MNb1PibSy6v76LADKBS9SV2pPRDUyS3h2V0tIMUVYSlMrZmQwQk95dTZRR0E2c29KaVE5NSsvK25vPTc6MZAGAfAGAYgHALoJHGh0dHBzOi8vbG9jYWxob3N0Ojg0NDMvbG9naW41&sessionid=1a63c232-98f8-400a-bf8d-4e6dbd9cb687

Please help

sangonzal commented 4 years ago

@kboger Can you post the error message that you are getting?

kboger commented 4 years ago

i made some adjustments to the B2C config and getting the error below.

com.nimbusds.oauth2.sdk.ParseException: Missing JSON object member with key "access_token"

sangonzal commented 4 years ago

@kboger Can you post the values you are using in the application.properties? (without any identifiable information or credentials)

robertsmarty commented 3 years ago

Hi @kboger, did you manage to work out the cause of the Missing JSON object member with key "access_token"?