Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include error description into invalid_grant validation result in TokenRequestValidator #1390

Closed
kollabara opened this issue Aug 30, 2024 · 4 comments
Assignees

Comments

@kollabara
Copy link

Which version of Duende IdentityServer are you using?
7.0.6

Which version of .NET are you using?
.Net 8

Describe the bug
There is no error description in the validation result model when the return error is invalid_grant

To Reproduce
During refresh put a refresh token that is longer than InputLengthRestrictions.RefreshToken, but applicable for every invalid_grant result.

Expected behavior
Besides having logs, it would be better to have errorDescription in the validation result.
That way clients won't need to reach out to us for an explanation of what has happened during the action since errorDescription will be supplied.
Also, it will help applications with zero-log policy.

Log output/exception with stacktrace
n/a

Additional context
n/a

@RolandGuijt
Copy link

Details in the validation result, although convenient for your clients, would also be very interesting for potential attackers. They tend to try a large number of parameter combinations on endpoints and see what the response is to find potential vulnerabilities. That's the reason we're not including any details in the response.

@RolandGuijt
Copy link

@kollabara Would you like to add anything to this issue? Feel free to do so. If not, I'll close the issue.

@RolandGuijt
Copy link

I'll go ahead and close this for now. Please feel free to add if you'd like to add anything.

@kollabara
Copy link
Author

Hello @RolandGuijt, that's make sense.

On the other hand would it be possible to lower severity of these logs from Error -> Warning because on a high volume load our logs are spammed with IdentityServer Errors.

Same as for this ticket - Issue-1547

Thank you

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

No branches or pull requests

2 participants