Skip to content

Commit f8cd2c7

Browse files
committed
Change nip.io Hostname
Hexadecimal-encoded nip.io URIs are not resolving exentriquesolutions/nip.io#56
1 parent e23acfb commit f8cd2c7

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

servlet/spring-boot/java/saml2/identity-provider/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This sample by default uses Docker to stand up two sample IdPs, each with one as
44
This allows you to explore different arrangements between multiple relying parties and asserting parties.
55

66
To ensure that there are no issues with sharing cookies between the Identity Provider and Service Provider applications, the application uses `nip.io` hostnames.
7-
The first identity provider can be reached by navigating to `http://idp-one.7f000001.nip.io`.
8-
The second identity provider can be reached by navigating to `http://idp-two.7f000001.nip.io`.
7+
The first identity provider can be reached by navigating to `http://idp-one.127-0-0-1.nip.io`.
8+
The second identity provider can be reached by navigating to `http://idp-two.127-0-0-1.nip.io`.
99

1010
To change how the IdP is configured, you can go to the sibling `identity-provider` project and edit the following files:
1111

servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
services:
2-
idp-one.7f000001.nip.io:
2+
idp-one.127-0-0-1.nip.io:
33
image: kristophjunge/test-saml-idp:1.15
44
volumes:
55
- ./metadata/authsources.php:/var/www/simplesamlphp/config/authsources.php
66
- ./metadata/one-relyingparties.php:/var/www/simplesamlphp/metadata/saml20-sp-remote.php
77
environment:
88
- PORT=${SERVER_PORT:-8080}
99

10-
idp-two.7f000001.nip.io:
10+
idp-two.127-0-0-1.nip.io:
1111
image: kristophjunge/test-saml-idp:1.15
1212
volumes:
1313
- ./metadata/authsources.php:/var/www/simplesamlphp/config/authsources.php
@@ -18,8 +18,8 @@ services:
1818
nginx:
1919
image: nginx:stable
2020
links:
21-
- idp-one.7f000001.nip.io
22-
- idp-two.7f000001.nip.io
21+
- idp-one.127-0-0-1.nip.io
22+
- idp-two.127-0-0-1.nip.io
2323
volumes:
2424
- ./nginx:/etc/nginx:ro
2525
ports:

servlet/spring-boot/java/saml2/identity-provider/src/main/resources/docker/nginx/nginx.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ http {
66

77
server {
88
listen 80;
9-
server_name idp-two.7f000001.nip.io;
9+
server_name idp-two.127-0-0-1.nip.io;
1010

1111
location / {
12-
proxy_pass http://idp-two.7f000001.nip.io:8080;
13-
proxy_set_header Host idp-two.7f000001.nip.io;
12+
proxy_pass http://idp-two.127-0-0-1.nip.io:8080;
13+
proxy_set_header Host idp-two.127-0-0-1.nip.io;
1414
}
1515
}
1616

1717
server {
1818
listen 80;
19-
server_name idp-one.7f000001.nip.io;
19+
server_name idp-one.127-0-0-1.nip.io;
2020

2121
location / {
22-
proxy_pass http://idp-one.7f000001.nip.io:8080;
23-
proxy_set_header Host idp-one.7f000001.nip.io;
22+
proxy_pass http://idp-one.127-0-0-1.nip.io:8080;
23+
proxy_set_header Host idp-one.127-0-0-1.nip.io;
2424
}
2525
}
2626

servlet/spring-boot/java/saml2/login/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spring:
2020
singlelogout:
2121
binding: REDIRECT
2222
url: "{baseUrl}/logout/saml2/slo"
23-
assertingparty.metadata-uri: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php
23+
assertingparty.metadata-uri: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php
2424
two:
2525
entity-id: "{baseUrl}/saml2/metadata"
2626
acs.location: "{baseUrl}/login/saml2/sso"
@@ -30,4 +30,4 @@ spring:
3030
singlelogout:
3131
binding: REDIRECT
3232
url: "{baseUrl}/logout/saml2/slo"
33-
assertingparty.metadata-uri: http://idp-two.7f000001.nip.io/simplesaml/saml2/idp/metadata.php
33+
assertingparty.metadata-uri: http://idp-two.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php

servlet/spring-boot/java/saml2/refreshable-metadata/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ logging.level:
1111
saml2:
1212
certificate: classpath:credentials/rp-certificate.crt
1313
key: classpath:credentials/rp-private.key
14-
ap.metadata: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php
14+
ap.metadata: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php

servlet/spring-boot/java/saml2/saml-extension-federation/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ spring:
1414
saml2:
1515
certificate: classpath:credentials/rp-certificate.crt
1616
key: classpath:credentials/rp-private.key
17-
ap.metadata: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php
17+
ap.metadata: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php

servlet/spring-boot/java/saml2/saml-extension-urls/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spring:
1818
signing.credentials:
1919
- private-key-location: classpath:credentials/rp-private.key
2020
certificate-location: classpath:credentials/rp-certificate.crt
21-
assertingparty.metadata-uri: http://idp-one.7f000001.nip.io/simplesaml/saml2/idp/metadata.php
21+
assertingparty.metadata-uri: http://idp-one.127-0-0-1.nip.io/simplesaml/saml2/idp/metadata.php
2222
singlelogout:
2323
binding: REDIRECT
2424
url: "{baseUrl}/saml/logout"

0 commit comments

Comments
 (0)