diff --git a/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java b/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java index a03b0128d..e42c95f7a 100644 --- a/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java +++ b/src/main/java/org/jenkinsci/test/acceptance/po/OicAuthConfigurationMode.java @@ -21,5 +21,4 @@ public WellKnownEndpoint(OicAuthSecurityRealm realm) { super(realm); } } - } diff --git a/src/test/java/plugins/OicAuthPluginTest.java b/src/test/java/plugins/OicAuthPluginTest.java index f6ec1743e..aa1f87269 100644 --- a/src/test/java/plugins/OicAuthPluginTest.java +++ b/src/test/java/plugins/OicAuthPluginTest.java @@ -208,8 +208,10 @@ private void configureRealm() { OicAuthSecurityRealm securityRealm = sc.useRealm(OicAuthSecurityRealm.class); securityRealm.configureClient(CLIENT, CLIENT); // Configuration mode - OicAuthConfigurationMode.WellKnownEndpoint configurationMode = securityRealm.useConfigurationMode(OicAuthConfigurationMode.WellKnownEndpoint.class); - configurationMode.wellKnownEndpoint.set(String.format("%s/realms/%s/.well-known/openid-configuration", keycloakUrl, REALM)); + OicAuthConfigurationMode.WellKnownEndpoint configurationMode = + securityRealm.useConfigurationMode(OicAuthConfigurationMode.WellKnownEndpoint.class); + configurationMode.wellKnownEndpoint.set( + String.format("%s/realms/%s/.well-known/openid-configuration", keycloakUrl, REALM)); securityRealm.setLogoutFromOpenidProvider(true); securityRealm.setPostLogoutUrl(jenkins.url("OicLogout").toExternalForm()); securityRealm.setUserFields(null, null, null, "groups");