From f8cd2c79803fd1ef5afa877bd1ab59e8f3e53c0c Mon Sep 17 00:00:00 2001 From: Josh Cummings <3627351+jzheaux@users.noreply.github.com> Date: Mon, 16 Jun 2025 12:16:03 -0600 Subject: [PATCH] Change nip.io Hostname Hexadecimal-encoded nip.io URIs are not resolving https://github.com/exentriquesolutions/nip.io/issues/56 --- .../java/saml2/identity-provider/README.adoc | 4 ++-- .../src/main/resources/docker/compose.yml | 8 ++++---- .../src/main/resources/docker/nginx/nginx.conf | 12 ++++++------ .../saml2/login/src/main/resources/application.yml | 4 ++-- .../src/main/resources/application.yml | 2 +- .../src/main/resources/application.yml | 2 +- .../src/main/resources/application.yml | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/servlet/spring-boot/java/saml2/identity-provider/README.adoc b/servlet/spring-boot/java/saml2/identity-provider/README.adoc index 1d1e538..52a24d9 100644 --- a/servlet/spring-boot/java/saml2/identity-provider/README.adoc +++ b/servlet/spring-boot/java/saml2/identity-provider/README.adoc @@ -4,8 +4,8 @@ This sample by default uses Docker to stand up two sample IdPs, each with one as This allows you to explore different arrangements between multiple relying parties and asserting parties. To ensure that there are no issues with sharing cookies between the Identity Provider and Service Provider applications, the application uses `nip.io` hostnames. -The first identity provider can be reached by navigating to `http://idp-one.7f000001.nip.io`. -The second identity provider can be reached by navigating to `http://idp-two.7f000001.nip.io`. +The first identity provider can be reached by navigating to `http://idp-one.127-0-0-1.nip.io`. +The second identity provider can be reached by navigating to `http://idp-two.127-0-0-1.nip.io`. To change how the IdP is configured, you can go to the sibling `identity-provider` project and edit the following files: diff --git a/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/compose.yml b/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/compose.yml index f37a273..b8032d0 100644 --- a/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/compose.yml +++ b/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/compose.yml @@ -1,5 +1,5 @@ services: - idp-one.7f000001.nip.io: + idp-one.127-0-0-1.nip.io: image: kristophjunge/test-saml-idp:1.15 volumes: - ./metadata/authsources.php:/var/www/simplesamlphp/config/authsources.php @@ -7,7 +7,7 @@ services: environment: - PORT=${SERVER_PORT:-8080} - idp-two.7f000001.nip.io: + idp-two.127-0-0-1.nip.io: image: kristophjunge/test-saml-idp:1.15 volumes: - ./metadata/authsources.php:/var/www/simplesamlphp/config/authsources.php @@ -18,8 +18,8 @@ services: nginx: image: nginx:stable links: - - idp-one.7f000001.nip.io - - idp-two.7f000001.nip.io + - idp-one.127-0-0-1.nip.io + - idp-two.127-0-0-1.nip.io volumes: - ./nginx:/etc/nginx:ro ports: diff --git a/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/nginx/nginx.conf b/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/nginx/nginx.conf index 61acb5a..db57abd 100644 --- a/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/nginx/nginx.conf +++ b/servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/nginx/nginx.conf @@ -6,21 +6,21 @@ http { server { listen 80; - server_name idp-two.7f000001.nip.io; + server_name idp-two.127-0-0-1.nip.io; location / { - proxy_pass http://idp-two.7f000001.nip.io:8080; - proxy_set_header Host idp-two.7f000001.nip.io; + proxy_pass http://idp-two.127-0-0-1.nip.io:8080; + proxy_set_header Host idp-two.127-0-0-1.nip.io; } } server { listen 80; - server_name idp-one.7f000001.nip.io; + server_name idp-one.127-0-0-1.nip.io; location / { - proxy_pass http://idp-one.7f000001.nip.io:8080; - proxy_set_header Host idp-one.7f000001.nip.io; + proxy_pass http://idp-one.127-0-0-1.nip.io:8080; + proxy_set_header Host idp-one.127-0-0-1.nip.io; } } diff --git a/servlet/spring-boot/java/saml2/login/src/main/resources/application.yml b/servlet/spring-boot/java/saml2/login/src/main/resources/application.yml index 45f4d7c..881592c 100644 --- a/servlet/spring-boot/java/saml2/login/src/main/resources/application.yml +++ b/servlet/spring-boot/java/saml2/login/src/main/resources/application.yml @@ -20,7 +20,7 @@ spring: singlelogout: binding: REDIRECT url: "{baseUrl}/logout/saml2/slo" - assertingparty.metadata-uri: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php + assertingparty.metadata-uri: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php two: entity-id: "{baseUrl}/saml2/metadata" acs.location: "{baseUrl}/login/saml2/sso" @@ -30,4 +30,4 @@ spring: singlelogout: binding: REDIRECT url: "{baseUrl}/logout/saml2/slo" - assertingparty.metadata-uri: http://idp-two.7f000001.nip.io/simplesaml/saml2/idp/metadata.php \ No newline at end of file + assertingparty.metadata-uri: http://idp-two.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php diff --git a/servlet/spring-boot/java/saml2/refreshable-metadata/src/main/resources/application.yml b/servlet/spring-boot/java/saml2/refreshable-metadata/src/main/resources/application.yml index e93525a..82f1318 100644 --- a/servlet/spring-boot/java/saml2/refreshable-metadata/src/main/resources/application.yml +++ b/servlet/spring-boot/java/saml2/refreshable-metadata/src/main/resources/application.yml @@ -11,4 +11,4 @@ logging.level: saml2: certificate: classpath:credentials/rp-certificate.crt key: classpath:credentials/rp-private.key - ap.metadata: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php + ap.metadata: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php diff --git a/servlet/spring-boot/java/saml2/saml-extension-federation/src/main/resources/application.yml b/servlet/spring-boot/java/saml2/saml-extension-federation/src/main/resources/application.yml index 61eebdf..679e2cc 100644 --- a/servlet/spring-boot/java/saml2/saml-extension-federation/src/main/resources/application.yml +++ b/servlet/spring-boot/java/saml2/saml-extension-federation/src/main/resources/application.yml @@ -14,4 +14,4 @@ spring: saml2: certificate: classpath:credentials/rp-certificate.crt key: classpath:credentials/rp-private.key - ap.metadata: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php \ No newline at end of file + ap.metadata: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php \ No newline at end of file diff --git a/servlet/spring-boot/java/saml2/saml-extension-urls/src/main/resources/application.yml b/servlet/spring-boot/java/saml2/saml-extension-urls/src/main/resources/application.yml index a11df22..9ac68ff 100644 --- a/servlet/spring-boot/java/saml2/saml-extension-urls/src/main/resources/application.yml +++ b/servlet/spring-boot/java/saml2/saml-extension-urls/src/main/resources/application.yml @@ -18,7 +18,7 @@ spring: signing.credentials: - private-key-location: classpath:credentials/rp-private.key certificate-location: classpath:credentials/rp-certificate.crt - assertingparty.metadata-uri: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php + assertingparty.metadata-uri: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php singlelogout: binding: REDIRECT url: "{baseUrl}/saml/logout"