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-2475] Use the primitive boolean expression in DelegatingAuthConfigFactory #1821

Closed

Conversation

mittalaishwarya
Copy link
Contributor

@@ -53,7 +53,7 @@ public DelegatingAuthConfigFactory(final ElytronAuthConfigFactory elytronAuthCon
@Override
public AuthConfigProvider getConfigProvider(String layer, String appContext, RegistrationListener listener) {
AuthConfigProvider authConfigProvider = elytronAuthConfigFactory.getConfigProvider(layer, appContext, listener);
if (authConfigProvider != null || elytronAuthConfigFactory.matchesRegistration(layer, appContext) || !delegationAllowed.get()) {
if (authConfigProvider != null || elytronAuthConfigFactory.matchesRegistration(layer, appContext) || Boolean.TRUE.equals(delegationAllowed.get())) {
Copy link
Contributor

@fjuma fjuma Oct 25, 2022

Choose a reason for hiding this comment

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

Because the original condition was !delegationAllowed.get(), this should be updated to either:

  • !Boolean.TRUE.equals(delegationAllowed.get())

or more directly:

  • Boolean.FALSE.equals(delegationAllowed.get()).

Copy link
Contributor

@fjuma fjuma left a comment

Choose a reason for hiding this comment

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

@mittalaishwarya Looks like something went wrong with the rebase here, this PR now contains some extra changes. Let us know if you need any helping getting this fixed.

@fjuma
Copy link
Contributor

fjuma commented Dec 19, 2022

Hi @mittalaishwarya, feel free to let us know if you need any help updating this PR, thanks!

@fjuma
Copy link
Contributor

fjuma commented Dec 22, 2023

Closing this since it was superseded by #1876.

@fjuma fjuma closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants