Child pages
  • Shibbolized Web Application Sample1
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This example provides two web pages, that is, login page (index.html) and authorization page (webapp.php) which will be appeared after the login.


index.html provides just a link to the location which is secured by shibboleth.
In the training course, this index.html is stored under the DocumentRoot (/var/www/html/).

    <title>Sample Web Application</title>
  <body marginheight="50" marginwidth="100">
    <H1>Sample Web Application</H1>
    <div style="border-style: solid; border-width: 1px; padding: 10px 5px 10px 20px;">
      Let's learn how to use shibboleth authorization</br>
      <button type="button" onclick="location.href=''">Login</button>


Afer the login, the user redirect to the webapp.php

    <title>Sample Web Application for Checking Server Environment</title>
      $eppn = $_SERVER['eppn'];
      $epa  = $_SERVER['unscoped-affiliation'];
      print "Your EPPN = ".$eppn."</br>";
      print "Your Affiliation = ".$epa."</br></br>";
      if ($epa == "staff") {
        print "You have the privilege to access this page. Please check server environments.</br></br>";
      } else {
        print "You have no privilege to access this page.</br>";
        print "Your access has been reported to the system administrator.";
  • No labels