Skip to content

Identity should include the body of the bad response into the exception message #5141

@antkmsft

Description

@antkmsft

Somewhat real world scenario: an SDK developer did not set scope in the token request context.
Server returns 400 Bad Request. And the body says that the scope is empty which is the error.
But the exception being thrown just says "400 Bad Request". And you have to debug to see the actual error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions