login.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Shibboleth;
  3. /**
  4. * Shibboleth login page.
  5. *
  6. * Actual authentication is provided by the Shibboleth Apache security module.
  7. * Shibboleth must be properly installed and configured. Then this page must
  8. * be secured through an Apache security directive.
  9. *
  10. * When Shibboleth is properly set up this page will only be available for
  11. * authenticated users. The plugin ensure those people are created and logged in.
  12. *
  13. * @license see /license.txt
  14. * @author Laurent Opprecht <laurent@opprecht.info>, Nicolas Rod for the University of Geneva
  15. */
  16. include_once __DIR__.'/init.php';
  17. /*
  18. ==============================================================================
  19. TEST SECTION
  20. ==============================================================================
  21. *
  22. * @todo: Only for testing. Comment that out for production
  23. *
  24. */
  25. //Shibboleth::session()->logout();
  26. //ShibbolethTest::helper()->setup_new_student_no_email();
  27. //ShibbolethTest::helper()->setup_staff();
  28. //ShibbolethTest::helper()->setup_new_teacher();
  29. //ShibbolethTest::helper()->setup_new_student();
  30. //ShibbolethTest::helper()->setup_new_minimal_data();
  31. ShibbolethController::instance()->login();