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

Issue #6554 - create the DefaultIdentityService even if no realmName is provided #6569

Merged
merged 3 commits into from Aug 27, 2021

Conversation

lachlan-roberts
Copy link
Contributor

Issue #6554

  • create the DefaultIdentityService even if no realmName is provided
  • DefaultAuthenticatorFactory should not create BasicAuthenticator for null AuthMethod

…is provided

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…enticator for null AuthMethod

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts requested review from janbartel and gregw and removed request for janbartel August 4, 2021 06:32
@@ -62,7 +62,7 @@ public Authenticator getAuthenticator(Server server, ServletContext context, Aut
String auth = configuration.getAuthMethod();
Authenticator authenticator = null;

if (auth == null || Constraint.__BASIC_AUTH.equalsIgnoreCase(auth))
if (Constraint.__BASIC_AUTH.equalsIgnoreCase(auth))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a test for this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

@lachlan-roberts I agree that we need at least some simple test that checks a DIS is created if there is no realm. Ie not necessarily testing this specific line, but testing the PR in general.

@@ -62,7 +62,7 @@ public Authenticator getAuthenticator(Server server, ServletContext context, Aut
String auth = configuration.getAuthMethod();
Authenticator authenticator = null;

if (auth == null || Constraint.__BASIC_AUTH.equalsIgnoreCase(auth))
if (Constraint.__BASIC_AUTH.equalsIgnoreCase(auth))
Copy link
Contributor

Choose a reason for hiding this comment

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

@lachlan-roberts I agree that we need at least some simple test that checks a DIS is created if there is no realm. Ie not necessarily testing this specific line, but testing the PR in general.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts added this to In progress in Jetty 10.0.7/11.0.7 FROZEN via automation Aug 27, 2021
@lachlan-roberts lachlan-roberts merged commit 5954fc2 into jetty-10.0.x Aug 27, 2021
Jetty 10.0.7/11.0.7 FROZEN automation moved this from In progress to Done Aug 27, 2021
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-6554-SecurityHandler branch August 27, 2021 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants