mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
Issue #7042 - remove init param to set authenticateNewUsers per webapp
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
2a3c65c164
commit
2a5197216d
@ -25,8 +25,6 @@ import org.eclipse.jetty.security.WrappedAuthConfiguration;
|
||||
*/
|
||||
public class OpenIdAuthConfiguration extends WrappedAuthConfiguration
|
||||
{
|
||||
public static final String AUTHENTICATE_NEW_USERS_INIT_PARAM = "jetty.openid.authenticateNewUsers";
|
||||
|
||||
private final OpenIdLoginService _openIdLoginService;
|
||||
|
||||
public OpenIdAuthConfiguration(OpenIdConfiguration openIdConfiguration, AuthConfiguration authConfiguration)
|
||||
@ -43,10 +41,6 @@ public class OpenIdAuthConfiguration extends WrappedAuthConfiguration
|
||||
_openIdLoginService = new OpenIdLoginService(openIdConfiguration, loginService);
|
||||
if (loginService == null)
|
||||
_openIdLoginService.setIdentityService(authConfiguration.getIdentityService());
|
||||
|
||||
String authNewUsers = authConfiguration.getInitParameter(AUTHENTICATE_NEW_USERS_INIT_PARAM);
|
||||
if (authNewUsers != null)
|
||||
_openIdLoginService.setAuthenticateNewUsers(Boolean.parseBoolean(authNewUsers));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user