Просмотр исходного кода

Change nip.io Hostname

Hexadecimal-encoded nip.io URIs are not resolving

https://github.com/exentriquesolutions/nip.io/issues/56
Josh Cummings 2 месяцев назад
Родитель
Сommit
f8cd2c7980

+ 2 - 2
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:
 

+ 4 - 4
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:

+ 6 - 6
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;
     }
   }
 

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

+ 1 - 1
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

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

+ 1 - 1
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"