Skip to content

Commit fc33957

Browse files
committed
Add embedded code snippets
1 parent d0ef071 commit fc33957

File tree

1 file changed

+42
-21
lines changed

1 file changed

+42
-21
lines changed

README.md

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,11 @@ Edit `/opt/idp5-jetty12-base/jetty-impl/src/main/resources/net/shibboleth/idp/mo
183183

184184
Create (or copy from this repo):
185185

186-
TODO /opt/idpswitch/idp5-jetty12/run
187-
TODO /opt/idpswitch/idp5-jetty12/idp-metadata.xml
186+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp5-jetty12/run#L1
187+
188+
```shell
189+
sudo ln -s /opt/idp5/metadata/idp-metadata.xml /opt/idpswitch/idp5-jetty12/idp-metadata.xml
190+
```
188191

189192
Start the server and test if it works:
190193

@@ -225,8 +228,11 @@ Edit `/opt/idp5-jetty11-base/src/main/resources/jetty-base/start.d/idp.ini` as f
225228

226229
Create (or copy from this repo):
227230

228-
TODO /opt/idpswitch/idp5-jetty11/run
229-
TODO /opt/idpswitch/idp5-jetty11/idp-metadata.xml
231+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp5-jetty11/run#L1
232+
233+
```shell
234+
sudo ln -s /opt/idp5/metadata/idp-metadata.xml /opt/idpswitch/idp5-jetty11/idp-metadata.xml
235+
```
230236

231237
Start the server and test if it works:
232238

@@ -271,8 +277,11 @@ Edit `/opt/idp5-tomcat10-base/tomcat-base/conf/server.xml` as follows:
271277

272278
Create (or copy from this repo):
273279

274-
TODO /opt/idpswitch/idp5-tomcat10/run
275-
TODO /opt/idpswitch/idp5-tomcat10/idp-metadata.xml
280+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp5-tomcat10/run#L1
281+
282+
```shell
283+
sudo ln -s /opt/idp5/metadata/idp-metadata.xml /opt/idpswitch/idp5-tomcat10/idp-metadata.xml
284+
```
276285

277286
Start the server and test if it works:
278287

@@ -310,8 +319,11 @@ Edit `/opt/idp4-jetty12-base/jetty-impl/src/main/resources/net/shibboleth/idp/mo
310319

311320
Create (or copy from this repo):
312321

313-
TODO /opt/idpswitch/idp4-jetty12/run
314-
TODO /opt/idpswitch/idp4-jetty12/idp-metadata.xml
322+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp4-jetty12/run#L1
323+
324+
```shell
325+
sudo ln -s /opt/idp4/metadata/idp-metadata.xml /opt/idpswitch/idp4-jetty12/idp-metadata.xml
326+
```
315327

316328
Note that this guide generally runs IdP 5 on Java 17 and IdP 4 on Java 11, but `idp4-jetty12` is an exception because Jetty 12 requires Java 17.
317329

@@ -354,8 +366,11 @@ Edit `/opt/idp4-jetty10-base/src/main/resources/jetty-base/start.d/idp.ini` as f
354366

355367
Create (or copy from this repo):
356368

357-
TODO /opt/idpswitch/idp4-jetty10/run
358-
TODO /opt/idpswitch/idp4-jetty10/idp-metadata.xml
369+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp4-jetty10/run#L1
370+
371+
```shell
372+
sudo ln -s /opt/idp4/metadata/idp-metadata.xml /opt/idpswitch/idp4-jetty10/idp-metadata.xml
373+
```
359374

360375
Start the server and test if it works:
361376

@@ -397,8 +412,11 @@ Delete `/opt/idp4-jetty9-base/src/main/resources/jetty-base/start.d/idp-backchan
397412

398413
Create (or copy from this repo):
399414

400-
TODO /opt/idpswitch/idp4-jetty9/run
401-
TODO /opt/idpswitch/idp4-jetty9/idp-metadata.xml
415+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp4-jetty9/run#L1
416+
417+
```shell
418+
sudo ln -s /opt/idp4/metadata/idp-metadata.xml /opt/idpswitch/idp4-jetty9/idp-metadata.xml
419+
```
402420

403421
Start the server and test if it works:
404422

@@ -448,8 +466,11 @@ Edit `/opt/idp4-tomcat9-base/src/main/resources/tomcat-base/conf/server.xml` as
448466

449467
Create (or copy from this repo):
450468

451-
TODO /opt/idpswitch/idp4-tomcat9/run
452-
TODO /opt/idpswitch/idp4-tomcat9/idp-metadata.xml
469+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/opt/idpswitch/idp4-tomcat9/run#L1
470+
471+
```shell
472+
sudo ln -s /opt/idp4/metadata/idp-metadata.xml /opt/idpswitch/idp4-tomcat9/idp-metadata.xml
473+
```
453474

454475
Start the server and test if it works:
455476

@@ -465,7 +486,7 @@ curl -v http://localhost:8080/idp/status
465486

466487
Create (or copy from this repo):
467488

468-
TODO /etc/systemd/system/idp.service
489+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/etc/systemd/system/idp.service#L1-L10
469490

470491
> [!NOTE]
471492
> This systemd service is good enough for local testing and development. But there might be some room for improvement in production.
@@ -512,7 +533,7 @@ sudo apt install apache2
512533

513534
Create (or copy from this repo):
514535

515-
TODO /etc/apache2/sites-available/idp.conf
536+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/etc/apache2/sites-available/idp.conf#L1-L14
516537

517538
> [!NOTE]
518539
> This Apache config is good enough for local testing and development. But there might be some room for improvement in production.
@@ -620,9 +641,9 @@ sudo systemctl restart idp
620641

621642
Create (or copy from this repo):
622643

623-
TODO /etc/apache2/sites-available/spmellon.conf
644+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/etc/apache2/sites-available/spmellon.conf#L1-L27
624645

625-
TODO /var/www/sp/sp.py
646+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/var/www/sp/sp.py#L1-L61
626647

627648
> [!NOTE]
628649
> Since both SP and IdP run on the same virtual machine, for convenience, I directly use the path to idp-metadata.xml in the SP config. In production, this XML file would, of course, be copied to the other machine.
@@ -659,7 +680,7 @@ We’ve learned that the Shibboleth IdP by default only provides an ugly transie
659680

660681
Create (or copy from this repo):
661682

662-
TODO /etc/apache2/sites-available/spmellon2.conf
683+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/etc/apache2/sites-available/spmellon2.conf#L1-L27
663684

664685
Edit both `/opt/idp4/conf/metadata-providers.xml` and `/opt/idp5/conf/metadata-providers.xml` and add the following at the bottom (just above the last line `</MetadataProvider>`):
665686

@@ -697,9 +718,9 @@ Edit `/etc/shibboleth/shibboleth2.xml` as follows:
697718

698719
Create (or copy from this repo):
699720

700-
TODO /etc/apache2/sites-available/spshib.conf
721+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/etc/apache2/sites-available/spshib.conf#L1-L22
701722

702-
TODO /var/www/sp/sp.py
723+
https://github.com/fmfi-svt/saml-shibboleth-guide/blob/d0ef071335da12aa5f60cc0c7679781295551b2b/var/www/sp/sp.py#L1-L61
703724

704725
Edit `/etc/apache2/conf-available/shib.conf` as follows: change `ShibCompatValidUser Off` to `ShibCompatValidUser On`.
705726

0 commit comments

Comments
 (0)