This forked project uses play-pac4j-java-demo
as the base to test SAML IDP integration with https://samltest.id
- Non-SAML client configurations are removed from
app/modules/SecurityModule.java
, and SAML client configuration code is updated to reflect changes required for testing. - The IDP SAML metadata document from samltest.id is added to
custom/samltest.id-providers.xml
- Key/Cert files are extracted from
conf/samlKeystore.jks
for easy of viewing. Commands used are added tocustom/readme.txt
- The auto-generated
sp-metadata.xml
file is copied fromtarget/sp-metadata.xml
tocustom/sp-metadata.example.txt
for reference.
The sp-metadata.xml file is valid for 20 years but you may need to re-upload it to samltest.id (https://samltest.id/upload.php) so the SP can be recognized.
This play-pac4j-java-demo
project is a Java Play framework web app to test the play-pac4j-java security library with various authentication mechanisms: Facebook, Twitter, form, basic auth, CAS, SAML, OpenID Connect, JWT...
Build the project and launch the Play app on http://localhost:9000:
cd play-pac4j-java-demo
bin\activator run
To test, you can call a protected url by clicking on the "Protected url by xxx" link, which will start the authentication process with the xxx provider.
Find a live demo on Heroku: http://play-pac4j-java-demo.herokuapp.com