|
|
|
|
@ -162,13 +162,6 @@ public class OidcProviderConfigurationTests {
@@ -162,13 +162,6 @@ public class OidcProviderConfigurationTests {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void loadContextWhenIssuerWithPathThenThrowException() { |
|
|
|
|
assertThatThrownBy( |
|
|
|
|
() -> this.spring.register(AuthorizationServerConfigurationWithIssuerPath.class).autowire() |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void loadContextWhenIssuerWithQueryThenThrowException() { |
|
|
|
|
assertThatThrownBy( |
|
|
|
|
@ -190,13 +183,6 @@ public class OidcProviderConfigurationTests {
@@ -190,13 +183,6 @@ public class OidcProviderConfigurationTests {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void loadContextWhenIssuerWithEmptyPathThenThrowException() { |
|
|
|
|
assertThatThrownBy( |
|
|
|
|
() -> this.spring.register(AuthorizationServerConfigurationWithIssuerEmptyPath.class).autowire() |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void loadContextWhenIssuerWithEmptyQueryThenThrowException() { |
|
|
|
|
assertThatThrownBy( |
|
|
|
|
@ -314,15 +300,6 @@ public class OidcProviderConfigurationTests {
@@ -314,15 +300,6 @@ public class OidcProviderConfigurationTests {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@EnableWebSecurity |
|
|
|
|
static class AuthorizationServerConfigurationWithIssuerPath extends AuthorizationServerConfiguration { |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
AuthorizationServerSettings authorizationServerSettings() { |
|
|
|
|
return AuthorizationServerSettings.builder().issuer(ISSUER_URL + "/issuer1").build(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@EnableWebSecurity |
|
|
|
|
static class AuthorizationServerConfigurationWithIssuerQuery extends AuthorizationServerConfiguration { |
|
|
|
|
|
|
|
|
|
@ -350,15 +327,6 @@ public class OidcProviderConfigurationTests {
@@ -350,15 +327,6 @@ public class OidcProviderConfigurationTests {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@EnableWebSecurity |
|
|
|
|
static class AuthorizationServerConfigurationWithIssuerEmptyPath extends AuthorizationServerConfiguration { |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
AuthorizationServerSettings authorizationServerSettings() { |
|
|
|
|
return AuthorizationServerSettings.builder().issuer(ISSUER_URL + "/").build(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@EnableWebSecurity |
|
|
|
|
static class AuthorizationServerConfigurationWithIssuerEmptyQuery extends AuthorizationServerConfiguration { |
|
|
|
|
|
|
|
|
|
|