Use HTTPS for external links wherever possible

See gh-16318
This commit is contained in:
Spring Operator
2019-03-26 04:15:27 -05:00
committed by Andy Wilkinson
parent 94633cfd89
commit bbbfee6480
13 changed files with 23 additions and 23 deletions

View File

@@ -56,7 +56,7 @@ public class MultipleResourceServerConfigurationTests {
this.context = new AnnotationConfigWebApplicationContext();
this.context.register(DoubleResourceConfiguration.class);
EnvironmentTestUtils.addEnvironment(this.context,
"security.oauth2.resource.tokenInfoUri:http://example.com",
"security.oauth2.resource.tokenInfoUri:https://example.com",
"security.oauth2.client.clientId=acme");
this.context.refresh();
assertThat(this.context

View File

@@ -239,7 +239,7 @@ public class ResourceServerTokenServicesConfigurationTests {
@Test
public void customUserInfoRestTemplateFactory() {
EnvironmentTestUtils.addEnvironment(this.environment,
"security.oauth2.resource.userInfoUri:http://example.com");
"security.oauth2.resource.userInfoUri:https://example.com");
this.context = new SpringApplicationBuilder(
CustomUserInfoRestTemplateFactory.class, ResourceConfiguration.class)
.environment(this.environment).web(false).run();
@@ -420,7 +420,7 @@ public class ResourceServerTokenServicesConfigurationTests {
@Bean
public TokenStore tokenStore() {
return new JwkTokenStore("http://my.key-set.uri");
return new JwkTokenStore("https://my.key-set.uri");
}
}