Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
26487336
Commit
26487336
authored
3 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Remove references to old www-scripts
parent
c8a70bff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/exampleauth/lib/Auth/Process/RedirectTest.php
+1
-1
1 addition, 1 deletion
modules/exampleauth/lib/Auth/Process/RedirectTest.php
modules/exampleauth/lib/Auth/Source/External.php
+4
-5
4 additions, 5 deletions
modules/exampleauth/lib/Auth/Source/External.php
with
5 additions
and
6 deletions
modules/exampleauth/lib/Auth/Process/RedirectTest.php
+
1
−
1
View file @
26487336
...
...
@@ -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
]);
...
...
This diff is collapsed.
Click to expand it.
modules/exampleauth/lib/Auth/Source/External.php
+
4
−
5
View file @
26487336
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment