You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xt/testapp/README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,24 +42,39 @@ Note that the command requires sudo to allow it to use the default https port of
42
42
43
43
TODO: maybe change it to use 8443
44
44
45
-
### Create your metadata.xml and cacert.pem file
45
+
### Configure the testapp to connect to the Identity Provider
46
46
47
47
The testapp now supports a simplified automatic configuration for testing against multiple Identity Providers (IdPs).
48
48
49
49
1. Simply create a directory in xt/testapp/IdPs for the name of the IdP (eg. google)
50
50
2. Download the metadata from your IdP and save it as IdPs/google/metadata.xml
51
51
3. Download the cacert.pem from the IdP and save it as IdPs/google/cacert.pem
52
+
4. Optionally create IdPs/google/config.yml for custom settings for the IdP (if the a custom config.yml does not exist it will refresh the settings from the default config.yml.
52
53
53
54
The index page will automatically list each configured Identity Provider as a link to initiate login against that IdP.
54
55
56
+
Your directory structure should look like:
57
+
58
+
IdPs/
59
+
auth0/
60
+
cacert.pem
61
+
metadata.yml
62
+
azure/
63
+
cacert.pem
64
+
config.yml (optional)
65
+
metadata.yml
66
+
google/
67
+
cacert.pem
68
+
metadata.yml
69
+
55
70
### Run lighttpd to deliver metadata.xml
56
71
57
72
Net::SAML2 requires access to a URL containing the metadata. The simplest method to provide this is to run the provided lighttpd-metadata.conf file:
58
73
59
74
1. cd xt/testapp
60
75
2. lighttpd -D -f lighttpd-metadata.conf
61
76
62
-
The metadata has been configured to be available at: http://localhost:8880/metadata.xml. The simplified IdP configuration will automatically access the metadata.xml at http://localhost:8880/IdPs/googlee/metadata.xml (if you followed the instructions above and created the google directory in xt/testapp/IdPs)
77
+
The metadata has been configured to be available at: http://localhost:8880/metadata.xml. The simplified IdP configuration will automatically access the metadata.xml at http://localhost:8880/IdPs/google/metadata.xml (if you followed the instructions above and created the google directory in xt/testapp/IdPs)
63
78
64
79
Note that the configuration attempts to only deliver a file named metadata.xml from the xt/testapp directory. There are no guarantees - this is a test application so verify your own security.
0 commit comments