Skip to content
Snippets Groups Projects
Commit 26487336 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Remove references to old www-scripts

parent c8a70bff
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ class RedirectTest extends \SimpleSAML\Auth\ProcessingFilter ...@@ -29,7 +29,7 @@ class RedirectTest extends \SimpleSAML\Auth\ProcessingFilter
// Save state and redirect // Save state and redirect
$id = Auth\State::saveState($state, 'exampleauth:redirectfilter-test'); $id = Auth\State::saveState($state, 'exampleauth:redirectfilter-test');
$url = Module::getModuleURL('exampleauth/redirecttest.php'); $url = Module::getModuleURL('exampleauth/redirecttest');
$httpUtils = new Utils\HTTP(); $httpUtils = new Utils\HTTP();
$httpUtils->redirectTrustedURL($url, ['StateId' => $id]); $httpUtils->redirectTrustedURL($url, ['StateId' => $id]);
......
...@@ -19,9 +19,8 @@ use SimpleSAML\Utils; ...@@ -19,9 +19,8 @@ use SimpleSAML\Utils;
* To adapt this to your own web site, you should: * To adapt this to your own web site, you should:
* 1. Create your own module directory. * 1. Create your own module directory.
* 2. Enable to module in the config by adding '<module-dir>' => true to the $config['module.enable'] array. * 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 * 3. Copy this file to its corresponding location in the new module.
* location in the new module. * 4. Replace all occurrences of "exampleauth" in this file with the name of your module.
* 4. Replace all occurrences of "exampleauth" in this file and in resume.php with the name of your module.
* 5. Adapt the getUser()-function, the authenticate()-function and the logout()-function to your site. * 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.: * 6. Add an entry in config/authsources.php referencing your module. E.g.:
* 'myauth' => array( * 'myauth' => array(
...@@ -148,7 +147,7 @@ class External extends Auth\Source ...@@ -148,7 +147,7 @@ class External extends Auth\Source
* We assume that whatever authentication page we send the user to has an * We assume that whatever authentication page we send the user to has an
* option to return the user to a specific page afterwards. * option to return the user to a specific page afterwards.
*/ */
$returnTo = Module::getModuleURL('exampleauth/resume.php', [ $returnTo = Module::getModuleURL('exampleauth/resume', [
'State' => $stateId, 'State' => $stateId,
]); ]);
...@@ -159,7 +158,7 @@ class External extends Auth\Source ...@@ -159,7 +158,7 @@ class External extends Auth\Source
* is also part of this module, but in a real example, this would likely be * 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. * 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. * The redirect to the authentication page.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment