Repository navigation
Conversation
Contributor
|
🚀 Deployed on https://pr-1943--authentik-pkg.netlify.app |
Contributor
Author
|
goauthentik/authentik#28225 merged |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Error messages from authentik now include the reason and the request ID, so users can pass the ID to their administrator.
error_with_responseand the device flow (adding a profile) now turn authentik error responses into a message like:The reason comes from
error_description(OAuth errors) ordetail(API errors). The request ID comes fromrequest_idin the body or theX-authentik-idheader. Responses from other servers, such as Vault, are shown as before.Before, adding a profile on a device with a wrong clock only showed
device token poll failed: invalid_request. Together with goauthentik/authentik#28225, which returnsinvalid_dpop_proofwith the reason, users see what's wrong.Not covered: token exchange (
ak auth …), which uses theoauth2crate's error type, and the Renewal failed badge in the app, which doesn't show an error message.Tested: new unit tests for the message format and for a device flow error;
cargo test -p ak-platform,cargo clippy -p ak-platformandcargo check -p ak-agent -p ak-clipass.