diff --git a/src/main/java/org/olat/login/LoginAuthprovidersController.java b/src/main/java/org/olat/login/LoginAuthprovidersController.java index 31badd48ef912c65529a1a97ba880594fcff367a..7062d3529c438f6af1f19bc6479f05ea51514b28 100644 --- a/src/main/java/org/olat/login/LoginAuthprovidersController.java +++ b/src/main/java/org/olat/login/LoginAuthprovidersController.java @@ -141,10 +141,13 @@ public class LoginAuthprovidersController extends MainLayoutBasicController impl contentBorn.contextPut("browserWarningOn", bwo ? Boolean.TRUE : Boolean.FALSE); // prepare login - if (provider == null) provider = loginModule.getDefaultProviderName(); + if (provider == null) { + provider = loginModule.getDefaultProviderName(); + } AuthenticationProvider authProvider = loginModule.getAuthenticationProvider(provider); - if (authProvider == null) + if (authProvider == null) { throw new AssertException("Invalid authentication provider: " + provider); + } //clean-up controllers if(authController != null) { diff --git a/src/main/java/org/olat/login/LoginModule.java b/src/main/java/org/olat/login/LoginModule.java index 6ccea99d487382cee6e709ee34f0c88052f7da36..25007f6c13ad956e5567b2fadc50cea995773f3a 100644 --- a/src/main/java/org/olat/login/LoginModule.java +++ b/src/main/java/org/olat/login/LoginModule.java @@ -190,7 +190,7 @@ public class LoginModule extends AbstractSpringModule { public AuthenticationProvider getAuthenticationProvider(String provider) { AuthenticationProvider authenticationProvider = null; for(AuthenticationProvider authProvider:authenticationProviders) { - if(authProvider.getName().equals(provider)) { + if(authProvider.getName().equalsIgnoreCase(provider)) { authenticationProvider = authProvider; } }