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

[ELY-2548] BasicAuthenticationMechanism should return FORBIDDEN instead of UNAUTHORIZED #2108

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

darranl
Copy link
Contributor

@darranl darranl commented Mar 14, 2024

This is a resubmission of #1899 to address the merge conflict.

https://issues.redhat.com/browse/ELY-2548

@Skyllarr FYI you had approved the original submission of this PR.

Copy link
Contributor

@Skyllarr Skyllarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darranl Thank you!

((AuthorizeCallback) callback).setAuthorized(false);
} else if(username.equals(((AuthorizeCallback) callback).getAuthenticationID()) &&
username.equals(((AuthorizeCallback) callback).getAuthorizationID())) {
((AuthorizeCallback) callback).setAuthorized(true);
} else {
if (username.equals(((AuthorizeCallback) callback).getAuthenticationID()) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darranl This is a minor but these conditions can be simplified, we can merge this now and then I can create a good-first-issue to simplify this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO I would say go ahead and raise a good first issue - this is not my fix I just addressed a merge conflict so we can clear some of the PR queue backlog.

@darranl
Copy link
Contributor Author

darranl commented Sep 23, 2024

Adding my approval (for the original PR as this PR is just to fix a merge conflict)

@darranl darranl merged commit fc185f6 into wildfly-security:2.x Sep 23, 2024
3 checks passed
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.

3 participants