Change nip.io Hostname

Hexadecimal-encoded nip.io URIs are not resolving

https://github.com/exentriquesolutions/nip.io/issues/56
This commit is contained in:
Josh Cummings
2025-06-16 12:16:03 -06:00
parent e23acfbd9e
commit f8cd2c7980
7 changed files with 17 additions and 17 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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;
}
}

View File

@@ -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
assertingparty.metadata-uri: http://idp-two.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php

View File

@@ -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

View File

@@ -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
ap.metadata: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php

View File

@@ -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"