This is the SWAMID errorURL template, implementing the SAML V2.0 Metadata Deployment Profile for errorURL Version 1.0.
Feel free to clone this repository, modify for you own needs and publish as the errorURL of your own Identity Provider.
Please contact operations@swamid.se on any questions regarding this template.
In the html
directory
- Replace
logo.png
with your own logo - Update at least
DISPLAYNAME
andEMAIL
in all html files - Upload the contents of
html
to, for example,https://saml-error.example.com
- Tell your federation operator to set the errorURL of your Identity Provider to
https://saml-error.example.com/ERRORURL_CODE.html
In the php
directory
- Replace
logo.png
with your own logo - Update at least
DISPLAYNAME
andEMAIL
intexts.*.json
- Upload the contents of
php
to, for example,https://saml-error.example.com
- Tell your federation operator to set the errorURL of your Identity Provider to
https://saml-error.example.com/?errorurl_code=ERRORURL_CODE&errorurl_ts=ERRORURL_TS&errorurl_rp=ERRORURL_RP&errorurl_tid=ERRORURL_TID&errorurl_ctx=ERRORURL_CTX
In the jsp
directory
- Replace
webapp/logo.png
with your own logo - Update at least
DISPLAYNAME
andEMAIL
inwebapp/WEB-INF/resources/texts.*.json
- Download json.org from https://github.com/stleary/JSON-java and save to
webapp/WEB-INF/lib/
- Create
error.war
filejar cf error.war -C webapp .
- Copy
error.war
tojetty-base
cp error.war /opt/jetty/jetty-base/
- Add
error.xml
to Jettycp jetty/error.xml /opt/jetty/jetty-base/webapps/
- Tell your federation operator to set the errorURL of your Identity Provider to
https://saml-error.example.com/error/?errorurl_code=ERRORURL_CODE&errorurl_ts=ERRORURL_TS&errorurl_rp=ERRORURL_RP&errorurl_tid=ERRORURL_TID&errorurl_ctx=ERRORURL_CTX
- Replace
webapp/logo.png
with your own logo - Update at least
DISPLAYNAME
andEMAIL
inwebapp/WEB-INF/resources/texts.*.json
- Download json.org from https://github.com/stleary/JSON-java and save to webapp/WEB-INF/lib/
- Create
error.war
filejar cf error.war -C webapp .
- Download and unpack Jetty from https://www.eclipse.org/jetty/download.php
mkdir /tmp/jetty cd /tmp/jetty wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/11.0.0/jetty-home-11.0.0.tar.gz tar xzf jetty-home-11.0.0.tar.gz
- Set JETTY_HOME
export JETTY_HOME=/tmp/jetty/jetty-home-11.0.0
- Initialize
jetty-base
mkdir /tmp/jetty-base cd /tmp/jetty-base java -jar $JETTY_HOME/start.jar --add-module=server,http,deploy,jsp
- Deploy
error.war
cp error.war /tmp/jetty-base/webapps
- Start Jetty
cd /tmp/jetty-base java -jar $JETTY_HOME/start.jar
- Tell your federation operator to set the errorURL of your Identity Provider to
http://saml-error.example.com:8080/error/?errorurl_code=ERRORURL_CODE&errorurl_ts=ERRORURL_TS&errorurl_rp=ERRORURL_RP&errorurl_tid=ERRORURL_TID&errorurl_ctx=ERRORURL_CTX
- Replace
webapp/logo.png
with your own logo - Update at least
DISPLAYNAME
andEMAIL
inwebapp/WEB-INF/resources/texts.*.json
- Download json.org from https://github.com/stleary/JSON-java and save to webapp/WEB-INF/lib/
- Create
error.war
filejar cf error.war -C webapp .
- Copy
error.war
to/opt/tomcat/webapps
cp error.war /opt/tomcat/webapps
- Tell your federation operator to set the errorURL of your Identity Provider to
https://saml-error.example.com/error/?errorurl_code=ERRORURL_CODE&errorurl_ts=ERRORURL_TS&errorurl_rp=ERRORURL_RP&errorurl_tid=ERRORURL_TID&errorurl_ctx=ERRORURL_CTX
In the dotnetapp
directory
- Replace
wwwroot/images/logo.png
with your own logo - Update at least
DISPLAYNAME
andEMAIL
intexts.*.json
- Upload the published version of dotnetapp to, for example, https://saml-error.example.com
- Tell your federation operator to set the errorURL of your Identity Provider to
https://saml-error.example.com/?errorurl_code=ERRORURL_CODE&errorurl_ts=ERRORURL_TS&errorurl_rp=ERRORURL_RP&errorurl_tid=ERRORURL_TID&errorurl_ctx=ERRORURL_CTX
Copyright (c) 2019 - 2020, SUNET (BSD 2-clause license)
See LICENSE for more info.