Issue #7042 - remove init param to set authenticateNewUsers per webapp

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2021-11-10 18:19:51 +11:00
parent 2a3c65c164
commit 2a5197216d
1 changed files with 0 additions and 6 deletions

View File

@ -25,8 +25,6 @@ import org.eclipse.jetty.security.WrappedAuthConfiguration;
*/ */
public class OpenIdAuthConfiguration extends WrappedAuthConfiguration public class OpenIdAuthConfiguration extends WrappedAuthConfiguration
{ {
public static final String AUTHENTICATE_NEW_USERS_INIT_PARAM = "jetty.openid.authenticateNewUsers";
private final OpenIdLoginService _openIdLoginService; private final OpenIdLoginService _openIdLoginService;
public OpenIdAuthConfiguration(OpenIdConfiguration openIdConfiguration, AuthConfiguration authConfiguration) public OpenIdAuthConfiguration(OpenIdConfiguration openIdConfiguration, AuthConfiguration authConfiguration)
@ -43,10 +41,6 @@ public class OpenIdAuthConfiguration extends WrappedAuthConfiguration
_openIdLoginService = new OpenIdLoginService(openIdConfiguration, loginService); _openIdLoginService = new OpenIdLoginService(openIdConfiguration, loginService);
if (loginService == null) if (loginService == null)
_openIdLoginService.setIdentityService(authConfiguration.getIdentityService()); _openIdLoginService.setIdentityService(authConfiguration.getIdentityService());
String authNewUsers = authConfiguration.getInitParameter(AUTHENTICATE_NEW_USERS_INIT_PARAM);
if (authNewUsers != null)
_openIdLoginService.setAuthenticateNewUsers(Boolean.parseBoolean(authNewUsers));
} }
} }