Skip to content

Missing error and error_description when acquiring the token interactively #513

Description

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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working, needs an investigation and a fixP2Normal priority items, should be done after P1SupportabilityFor issues related to improving the customer support experiencepublic-clientFor questions/issues related to public client apps

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions