Use HTTPS for external links wherever possible
See gh-16318
This commit is contained in:
committed by
Andy Wilkinson
parent
94633cfd89
commit
bbbfee6480
@@ -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
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user