Home / Function/ getAuthHeaderWhenAuthForCustomDomain() — spring-boot Function Reference

getAuthHeaderWhenAuthForCustomDomain() — spring-boot Function Reference

Architecture documentation for the getAuthHeaderWhenAuthForCustomDomain() function in DockerRegistryConfigAuthenticationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c6bb1243_f071_9519_243c_dbacc2d2ba46["getAuthHeaderWhenAuthForCustomDomain()"]
  c3e7f0d3_50c7_ae54_85ad_da5e677154d9["toString()"]
  c6bb1243_f071_9519_243c_dbacc2d2ba46 -->|calls| c3e7f0d3_50c7_ae54_85ad_da5e677154d9
  56c6a94a_906f_bea5_18c0_207cf050ae68["of()"]
  c6bb1243_f071_9519_243c_dbacc2d2ba46 -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68
  89d1cf4e_05c3_cecb_b45b_6bb19b354798["getAuthHeader()"]
  c6bb1243_f071_9519_243c_dbacc2d2ba46 -->|calls| 89d1cf4e_05c3_cecb_b45b_6bb19b354798
  8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e["decode()"]
  c6bb1243_f071_9519_243c_dbacc2d2ba46 -->|calls| 8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e
  style c6bb1243_f071_9519_243c_dbacc2d2ba46 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerRegistryConfigAuthenticationTests.java lines 114–134

	@WithResource(name = "config.json", content = """
			{
			  "auths": {
				"my-registry.example.com": {
				  "auth": "Y3VzdG9tVXNlcjpjdXN0b21QYXNz"
				}
			  }
			}
			""")
	@Test
	void getAuthHeaderWhenAuthForCustomDomain(@ResourcesRoot Path directory) {
		this.environment.put("DOCKER_CONFIG", directory.toString());
		ImageReference imageReference = ImageReference.of("my-registry.example.com/ubuntu:latest");
		String authHeader = getAuthHeader(imageReference);
		assertThat(authHeader).isNotNull();
		assertThat(decode(authHeader)).hasSize(4)
			.containsEntry("serveraddress", "my-registry.example.com")
			.containsEntry("username", "customUser")
			.containsEntry("password", "customPass")
			.containsEntry("email", null);
	}

Subdomains

Frequently Asked Questions

What does getAuthHeaderWhenAuthForCustomDomain() do?
getAuthHeaderWhenAuthForCustomDomain() is a function in the spring-boot codebase.
What does getAuthHeaderWhenAuthForCustomDomain() call?
getAuthHeaderWhenAuthForCustomDomain() calls 4 function(s): decode, getAuthHeader, of, toString.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free