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

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

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.

@Skyllarr Skyllarr added the +1 DV label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants