#{extends 'main.html' /} #{set title:'Home' /}
This is an example shibboleth enabled Play! application to
demonstrate how the shibboleth module works. When you run this app
using play test
a Mock Shibboleth SP will be used.
In order to test the app out for real with your SP you need to
configure the appropriate parameters in conf/application.conf
and then run app using play run
. Test viewing a
restricted page that will
require you to be authenticated first.
Try the application tests or read the module documentation.
#{if session.contains("shibboleth")} #{/if} #{else} #{/else} #{shibboleth.check 'administrator'}This text is only be viewable by authenticated users as it is restricted within the template using a #{shibboleth.check 'administrator'}
tag.
No session attributes defined
#{/else}No HTTP headers received
#{/else}No mock Shibboleth headers defined
#{/else}