mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use HTTPS for external links wherever possible
See gh-16276
This commit is contained in:
parent
878a635bfb
commit
fb242c27d2
@ -125,7 +125,7 @@ public class ReactiveManagementWebSecurityAutoConfigurationTests {
|
||||
.withConfiguration(AutoConfigurations
|
||||
.of(ReactiveOAuth2ResourceServerAutoConfiguration.class))
|
||||
.withPropertyValues(
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://authserver")
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=https://authserver")
|
||||
.run((context) -> assertThat(context).doesNotHaveBean(
|
||||
ReactiveManagementWebSecurityAutoConfiguration.class));
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public class ManagementWebSecurityAutoConfigurationTests {
|
||||
.withConfiguration(AutoConfigurations
|
||||
.of(OAuth2ResourceServerAutoConfiguration.class))
|
||||
.withPropertyValues(
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://authserver")
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=https://authserver")
|
||||
.run((context) -> assertThat(context)
|
||||
.doesNotHaveBean(ManagementWebSecurityConfigurerAdapter.class));
|
||||
}
|
||||
|
@ -110,9 +110,9 @@ public class Neo4jPropertiesTests {
|
||||
@Test
|
||||
public void credentialsAreSetFromUri() {
|
||||
Neo4jProperties properties = load(true,
|
||||
"spring.data.neo4j.uri=http://user:secret@my-server:7474");
|
||||
"spring.data.neo4j.uri=https://user:secret@my-server:7474");
|
||||
Configuration configuration = properties.createConfiguration();
|
||||
assertDriver(configuration, Neo4jProperties.HTTP_DRIVER, "http://my-server:7474");
|
||||
assertDriver(configuration, Neo4jProperties.HTTP_DRIVER, "https://my-server:7474");
|
||||
assertCredentials(configuration, "user", "secret");
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ public class ReactiveOAuth2ClientAutoConfigurationTests {
|
||||
List<ClientRegistration> registrations = new ArrayList<>();
|
||||
registrations
|
||||
.add(getClientRegistration("first", "https://user-info-uri.com"));
|
||||
registrations.add(getClientRegistration("second", "http://other-user-info"));
|
||||
registrations.add(getClientRegistration("second", "https://other-user-info"));
|
||||
return new InMemoryReactiveClientRegistrationRepository(registrations);
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ public class OAuth2WebSecurityConfigurationTests {
|
||||
List<ClientRegistration> registrations = new ArrayList<>();
|
||||
registrations
|
||||
.add(getClientRegistration("first", "https://user-info-uri.com"));
|
||||
registrations.add(getClientRegistration("second", "http://other-user-info"));
|
||||
registrations.add(getClientRegistration("second", "https://other-user-info"));
|
||||
return new InMemoryClientRegistrationRepository(registrations);
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ public class OAuth2ResourceServerAutoConfigurationTests {
|
||||
@Test
|
||||
public void autoConfigurationShouldMatchDefaultJwsAlgorithm() {
|
||||
this.contextRunner.withPropertyValues(
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://jwk-set-uri.com")
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=https://jwk-set-uri.com")
|
||||
.run((context) -> {
|
||||
JwtDecoder jwtDecoder = context.getBean(JwtDecoder.class);
|
||||
assertThat(jwtDecoder).hasFieldOrPropertyWithValue("jwsAlgorithm",
|
||||
@ -98,7 +98,7 @@ public class OAuth2ResourceServerAutoConfigurationTests {
|
||||
@Test
|
||||
public void autoConfigurationShouldConfigureResourceServerWithJwsAlgorithm() {
|
||||
this.contextRunner.withPropertyValues(
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://jwk-set-uri.com",
|
||||
"spring.security.oauth2.resourceserver.jwt.jwk-set-uri=https://jwk-set-uri.com",
|
||||
"spring.security.oauth2.resourceserver.jwt.jws-algorithm=HS512")
|
||||
.run((context) -> {
|
||||
JwtDecoder jwtDecoder = context.getBean(JwtDecoder.class);
|
||||
|
@ -72,19 +72,19 @@ public class InitCommandTests extends AbstractHttpClientMockTests {
|
||||
@Test
|
||||
public void listServiceCapabilitiesText() throws Exception {
|
||||
mockSuccessfulMetadataTextGet();
|
||||
this.command.run("--list", "--target=http://fake-service");
|
||||
this.command.run("--list", "--target=https://fake-service");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listServiceCapabilities() throws Exception {
|
||||
mockSuccessfulMetadataGet(true);
|
||||
this.command.run("--list", "--target=http://fake-service");
|
||||
this.command.run("--list", "--target=https://fake-service");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listServiceCapabilitiesV2() throws Exception {
|
||||
mockSuccessfulMetadataGetV2(true);
|
||||
this.command.run("--list", "--target=http://fake-service");
|
||||
this.command.run("--list", "--target=https://fake-service");
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -357,7 +357,7 @@ public class InitCommandTests extends AbstractHttpClientMockTests {
|
||||
|
||||
@Test
|
||||
public void userAgent() throws Exception {
|
||||
this.command.run("--list", "--target=http://fake-service");
|
||||
this.command.run("--list", "--target=https://fake-service");
|
||||
verify(this.http).execute(this.requestCaptor.capture());
|
||||
Header agent = this.requestCaptor.getValue().getHeaders("User-Agent")[0];
|
||||
assertThat(agent.getValue()).startsWith("SpringBootCli/");
|
||||
|
@ -38,7 +38,7 @@ public class InitializrServiceTests extends AbstractHttpClientMockTests {
|
||||
@Test
|
||||
public void loadMetadata() throws Exception {
|
||||
mockSuccessfulMetadataGet(false);
|
||||
InitializrServiceMetadata metadata = this.invoker.loadMetadata("http://foo/bar");
|
||||
InitializrServiceMetadata metadata = this.invoker.loadMetadata("https://foo/bar");
|
||||
assertThat(metadata).isNotNull();
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ public class ProjectGenerationRequestTests {
|
||||
|
||||
@Test
|
||||
public void customServer() throws URISyntaxException {
|
||||
String customServerUrl = "http://foo:8080/initializr";
|
||||
String customServerUrl = "https://foo:8080/initializr";
|
||||
this.request.setServiceUrl(customServerUrl);
|
||||
this.request.getDependencies().add("security");
|
||||
assertThat(this.request.generateUrl(createDefaultMetadata())).isEqualTo(new URI(
|
||||
|
@ -50,9 +50,9 @@
|
||||
:spring-rest-docs: https://projects.spring.io/spring-restdocs/
|
||||
:spring-integration: https://projects.spring.io/spring-integration/
|
||||
:spring-session: https://projects.spring.io/spring-session/
|
||||
:spring-framework: http://projects.spring.io/spring-framework/
|
||||
:spring-security: http://projects.spring.io/spring-security/
|
||||
:spring-data-jpa: http://projects.spring.io/spring-data-jpa/
|
||||
:spring-framework: https://projects.spring.io/spring-framework/
|
||||
:spring-security: https://projects.spring.io/spring-security/
|
||||
:spring-data-jpa: https://projects.spring.io/spring-data-jpa/
|
||||
:spring-security-reference: https://docs.spring.io/spring-security/site/docs/{spring-security-docs-version}/reference/htmlsingle
|
||||
:spring-security-oauth2-reference: https://projects.spring.io/spring-security-oauth/docs/oauth2.html
|
||||
:spring-webservices-reference: https://docs.spring.io/spring-ws/docs/{spring-webservices-docs-version}/reference/
|
||||
@ -66,7 +66,7 @@
|
||||
:spring-data: https://projects.spring.io/spring-data/
|
||||
:spring-data-rest-javadoc: https://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest
|
||||
:gradle-userguide: https://www.gradle.org/docs/current/userguide
|
||||
:ant-manual: http://ant.apache.org/manual
|
||||
:ant-manual: https://ant.apache.org/manual
|
||||
:code-examples: {sources-root}/main/java/org/springframework/boot/docs
|
||||
:test-examples: {sources-root}/test/java/org/springframework/boot/docs
|
||||
:gradle-user-guide: https://docs.gradle.org/4.2.1/userguide
|
||||
@ -74,7 +74,7 @@
|
||||
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
|
||||
:jooq-manual: https://www.jooq.org/doc/{jooq-version}/manual-single-page
|
||||
:micrometer-concepts-documentation: https://micrometer.io/docs/concepts
|
||||
:micrometer-registry-documentation: http://micrometer.io/docs/registry
|
||||
:micrometer-registry-documentation: https://micrometer.io/docs/registry
|
||||
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
|
||||
:kotlin-documentation: https://kotlinlang.org/docs/reference/
|
||||
:junit5-documentation: https://junit.org/junit5/docs/current/user-guide
|
||||
@ -116,9 +116,9 @@
|
||||
:spring-rest-docs: https://projects.spring.io/spring-restdocs/
|
||||
:spring-integration: https://projects.spring.io/spring-integration/
|
||||
:spring-session: https://projects.spring.io/spring-session/
|
||||
:spring-framework: http://projects.spring.io/spring-framework/
|
||||
:spring-security: http://projects.spring.io/spring-security/
|
||||
:spring-data-jpa: http://projects.spring.io/spring-data-jpa/
|
||||
:spring-framework: https://projects.spring.io/spring-framework/
|
||||
:spring-security: https://projects.spring.io/spring-security/
|
||||
:spring-data-jpa: https://projects.spring.io/spring-data-jpa/
|
||||
:spring-security-reference: https://docs.spring.io/spring-security/site/docs/{spring-security-docs-version}/reference/htmlsingle
|
||||
:spring-security-oauth2-reference: https://projects.spring.io/spring-security-oauth/docs/oauth2.html
|
||||
:spring-webservices-reference: https://docs.spring.io/spring-ws/docs/{spring-webservices-docs-version}/reference/
|
||||
@ -132,12 +132,12 @@
|
||||
:spring-data: https://projects.spring.io/spring-data/
|
||||
:spring-data-rest-javadoc: https://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest
|
||||
:gradle-userguide: https://www.gradle.org/docs/current/userguide
|
||||
:ant-manual: http://ant.apache.org/manual
|
||||
:ant-manual: https://ant.apache.org/manual
|
||||
:gradle-user-guide: https://docs.gradle.org/4.2.1/userguide
|
||||
:hibernate-documentation: https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
|
||||
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
|
||||
:micrometer-concepts-documentation: https://micrometer.io/docs/concepts
|
||||
:micrometer-registry-documentation: http://micrometer.io/docs/registry
|
||||
:micrometer-registry-documentation: https://micrometer.io/docs/registry
|
||||
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
|
||||
:kotlin-documentation: https://kotlinlang.org/docs/reference/
|
||||
:junit5-documentation: https://junit.org/junit5/docs/current/user-guide
|
||||
|
@ -3572,11 +3572,11 @@ You can register multiple OAuth2 clients and providers under the
|
||||
spring.security.oauth2.client.registration.my-client-2.client-authentication-method=basic
|
||||
spring.security.oauth2.client.registration.my-client-2.authorization-grant-type=authorization_code
|
||||
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.authorization-uri=http://my-auth-server/oauth/authorize
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.token-uri=http://my-auth-server/oauth/token
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.user-info-uri=http://my-auth-server/userinfo
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.authorization-uri=https://my-auth-server/oauth/authorize
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.token-uri=https://my-auth-server/oauth/token
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.user-info-uri=https://my-auth-server/userinfo
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.user-info-authentication-method=header
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.jwk-set-uri=http://my-auth-server/token_keys
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.jwk-set-uri=https://my-auth-server/token_keys
|
||||
spring.security.oauth2.client.provider.my-oauth-provider.user-name-attribute=name
|
||||
----
|
||||
|
||||
|
@ -184,7 +184,7 @@ do as they were designed before this was clarified.
|
||||
| https://github.com/tomakehurst/wiremock[WireMock] and Spring REST Docs
|
||||
| https://github.com/ePages-de/restdocs-wiremock
|
||||
|
||||
| https://alexo.github.io/wro4j/[Wro4j] (Advanced usage)
|
||||
| https://alexo.github.io/wro4j/[Wro4j]
|
||||
| https://github.com/michael-simons/wro4j-spring-boot-starter
|
||||
|
||||
|===
|
||||
|
@ -151,7 +151,7 @@ public class JSONTokener {
|
||||
/*
|
||||
* Skip a # hash end-of-line comment. The JSON RFC doesn't specify this
|
||||
* behavior, but it's required to parse existing documents. See
|
||||
* http://b/2571423.
|
||||
* https://b/2571423.
|
||||
*/
|
||||
skipToEndOfLine();
|
||||
continue;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-dependencies</artifactId>
|
||||
|
Loading…
Reference in New Issue
Block a user