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

Update the ASP.NET Core/OWIN hosts to support returning authentication properties for errored requests #2221

Merged

Conversation

kevinchalet
Copy link
Member

This PR updates the ASP.NET Core/OWIN hosts to support returning authentication properties - added by OpenIddict itself or stored by the user (e.g for the client, when triggering the challenge) - for errored requests when the "error pass-through" mode is enabled in the client or server options.

Note: it's a best effort: if the error was due to an authentication error, not all the properties will be available (e.g for the client stack, if the state token was invalid or already redeemed, most of the properties won't be available).

Fixes #2220.

@kevinchalet kevinchalet added this to the 6.0.0-preview3 milestone Nov 12, 2024
@kevinchalet kevinchalet self-assigned this Nov 12, 2024
@kevinchalet kevinchalet merged commit 878569c into openiddict:dev Nov 12, 2024
6 checks passed
@kevinchalet kevinchalet deleted the errored_authentication_properties branch November 12, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect to original client from callback on external error
1 participant