diff --git a/modules/exampleauth/lib/Auth/Process/RedirectTest.php b/modules/exampleauth/lib/Auth/Process/RedirectTest.php index 34c93221251e3e3db553ef66a335436129922068..c5d2d8f8d32db01a2925e160d45db126e0ad2d6d 100644 --- a/modules/exampleauth/lib/Auth/Process/RedirectTest.php +++ b/modules/exampleauth/lib/Auth/Process/RedirectTest.php @@ -29,7 +29,7 @@ class RedirectTest extends \SimpleSAML\Auth\ProcessingFilter // Save state and redirect $id = Auth\State::saveState($state, 'exampleauth:redirectfilter-test'); - $url = Module::getModuleURL('exampleauth/redirecttest.php'); + $url = Module::getModuleURL('exampleauth/redirecttest'); $httpUtils = new Utils\HTTP(); $httpUtils->redirectTrustedURL($url, ['StateId' => $id]); diff --git a/modules/exampleauth/lib/Auth/Source/External.php b/modules/exampleauth/lib/Auth/Source/External.php index 44595129d149143d66cb4850d82aa7baf79bac52..693a45ceed6179494ee4cef34407c66c316d4cfb 100644 --- a/modules/exampleauth/lib/Auth/Source/External.php +++ b/modules/exampleauth/lib/Auth/Source/External.php @@ -19,9 +19,8 @@ use SimpleSAML\Utils; * To adapt this to your own web site, you should: * 1. Create your own module directory. * 2. Enable to module in the config by adding '<module-dir>' => true to the $config['module.enable'] array. - * 3. Copy this file and modules/exampleauth/www/resume.php to their corresponding - * location in the new module. - * 4. Replace all occurrences of "exampleauth" in this file and in resume.php with the name of your module. + * 3. Copy this file to its corresponding location in the new module. + * 4. Replace all occurrences of "exampleauth" in this file with the name of your module. * 5. Adapt the getUser()-function, the authenticate()-function and the logout()-function to your site. * 6. Add an entry in config/authsources.php referencing your module. E.g.: * 'myauth' => array( @@ -148,7 +147,7 @@ class External extends Auth\Source * We assume that whatever authentication page we send the user to has an * option to return the user to a specific page afterwards. */ - $returnTo = Module::getModuleURL('exampleauth/resume.php', [ + $returnTo = Module::getModuleURL('exampleauth/resume', [ 'State' => $stateId, ]); @@ -159,7 +158,7 @@ class External extends Auth\Source * is also part of this module, but in a real example, this would likely be * the absolute URL of the login page for the site. */ - $authPage = Module::getModuleURL('exampleauth/authpage.php'); + $authPage = Module::getModuleURL('exampleauth/authpage'); /* * The redirect to the authentication page.