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
Issue #6554 - create the DefaultIdentityService even if no realmName is provided #6569
Conversation
…is provided Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…enticator for null AuthMethod Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@@ -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)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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>
Issue #6554
DefaultIdentityService
even if no realmName is providedDefaultAuthenticatorFactory
should not createBasicAuthenticator
for null AuthMethod