Open EgorTarasovSecurrency opened 2 years ago
Currently, TokenExchangeRequestValidator fail message is effectively lost since it is exchanged to the generic message https://github.com/RockSolidKnowledge/TokenExchange/blob/b999e7738f2b6fd7ee5fa4eebabc9dde6d73748b/src/Rsk.TokenExchange.IdentityServer4/TokenExchangeExtensionGrantValidator.cs#L70
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
Currently, TokenExchangeRequestValidator fail message is effectively lost since it is exchanged to the generic message https://github.com/RockSolidKnowledge/TokenExchange/blob/b999e7738f2b6fd7ee5fa4eebabc9dde6d73748b/src/Rsk.TokenExchange.IdentityServer4/TokenExchangeExtensionGrantValidator.cs#L70
It would be nice to make the error description visible. Perhaps, something like that:
If you will accept PRs on the change, please let me know