Skip to content

Visible TokenExchangeRequestValidator fail message #2

@EgorTarasovSecurrency

Description

@EgorTarasovSecurrency

Currently, TokenExchangeRequestValidator fail message is effectively lost since it is exchanged to the generic message

context.Result = new GrantValidationResult(TokenRequestErrors.InvalidGrant, "Invalid subject token");

It would be nice to make the error description visible. Perhaps, something like that:

context.Result = new GrantValidationResult(TokenRequestErrors.InvalidGrant, $"Invalid subject token - {validationResult.ErrorDescription}"); 

If you will accept PRs on the change, please let me know

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions