question

JacksonChen-1068 avatar image
0 Votes"
JacksonChen-1068 asked ·

Failed to validate data received from Authorization service - Could not validate state

When I was setting my spring boot up with Azure AD service, I download the sample below https://github.com/Azure-Samples/ms-identity-java-webapp
but it didn't work.

It shows me the error-Failed to validate data received from Authorization service - Could not validate state

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

saurabhsh-msft avatar image
0 Votes"
saurabhsh-msft answered ·

There might be a possibility that the sample has some issues as I could see there is an ongoing GitHub issue on the sample repository where multiple users are facing similar "could not validate state" error. I am also internally checking with the sample owner on this issue and update you my findings.
However, can you please refer to the A web app that calls web APIs: Code configuration documentation which provides code snippets to use MSAL in Java.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

saurabhsh-msft avatar image
0 Votes"
saurabhsh-msft answered ·

@JacksonChen-1068 I have received the information that this issue may be related to SameSite updates and so, the sample has been updated to handle the SameSite issues. Please let us know if this does not resolve the issues.
Please take a look at this article to know more about samesite cookie.

Please "Accept as answer" wherever the information provided helps you to help others in the community.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is not yet resolved, I tried with Java spring boot sample today, with 3 different browser as well as in some github conversation this was said as a chrome issue!
I am still getting the error "Could not validate state"

0 Votes 0 · ·