I am using the InteractiveRequestParameters to acquiring the token Interactively, which is working properly when there are no problems.
But when there are problems, like the authorization code isn´t provided to the redirect url, then the only message from the browser is:
Authentication failed. You can return to the application. Feel free to close this browser tab.
Error details: error {0} error_description: {1}
I captured the request, and the error and error_description are present - so the MSAL gets this information, but did´t return it in their response to the browser.
This is the captured request (I truncated it a bit)
POST http://localhost:12345/ HTTP/1.1
Content-Type: application/x-www-form-urlencoded
error=invalid_request&error_description=AADB2C90146%3A+The+scope+%27openid+profile+offline_access...
My Questions:
- Is this a bug or do I miss something.
- How can I get the
error and error_description programmatically? I already activated DEBUG Level logging but I only get:
"Exception in thread "main" java.util.concurrent.CompletionException: com.microsoft.aad.msal4j.MsalClientException: No Authorization code was returned from the server" instead of the real reason, which is statet in 'error_description'
Thank you in advance :)
I am using the
InteractiveRequestParametersto acquiring the token Interactively, which is working properly when there are no problems.But when there are problems, like the authorization code isn´t provided to the redirect url, then the only message from the browser is:
I captured the request, and the
erroranderror_descriptionare present - so the MSAL gets this information, but did´t return it in their response to the browser.This is the captured request (I truncated it a bit)
My Questions:
erroranderror_descriptionprogrammatically? I already activated DEBUG Level logging but I only get:"Exception in thread "main" java.util.concurrent.CompletionException: com.microsoft.aad.msal4j.MsalClientException: No Authorization code was returned from the server" instead of the real reason, which is statet in 'error_description'
Thank you in advance :)