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
0
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
eff0bc55
Commit
eff0bc55
authored
3 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
QA fixes
parent
40c5c9c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/exampleauth/lib/Controller/ExampleAuth.php
+9
-7
9 additions, 7 deletions
modules/exampleauth/lib/Controller/ExampleAuth.php
modules/saml/lib/Auth/Process/SQLPersistentNameID.php
+1
-1
1 addition, 1 deletion
modules/saml/lib/Auth/Process/SQLPersistentNameID.php
with
10 additions
and
8 deletions
modules/exampleauth/lib/Controller/ExampleAuth.php
+
9
−
7
View file @
eff0bc55
...
...
@@ -78,9 +78,9 @@ class ExampleAuth
*
* @param \Symfony\Component\HttpFoundation\Request $request The current request.
*
* @return \SimpleSAML\XHTML\Template
* @return \SimpleSAML\XHTML\Template
|\SimpleSAML\HTTP\RunnableResponse
*/
public
function
authpage
(
Request
$request
)
:
Template
public
function
authpage
(
Request
$request
)
{
/**
* This page serves as a dummy login page.
...
...
@@ -88,12 +88,13 @@ class ExampleAuth
* Note that we don't actually validate the user in this example. This page
* just serves to make the example work out of the box.
*/
if
(
$request
->
get
(
'ReturnTo'
)
===
null
)
{
$returnTo
=
$request
->
get
(
'ReturnTo'
);
if
(
$returnTo
===
null
)
{
throw
new
Error\Exception
(
'Missing ReturnTo parameter.'
);
}
$httpUtils
=
new
Utils\HTTP
();
$returnTo
=
$httpUtils
->
checkURLAllowed
(
$re
quest
->
get
(
'Re
turnTo
'
)
);
$returnTo
=
$httpUtils
->
checkURLAllowed
(
$returnTo
);
/**
* The following piece of code would never be found in a real authentication page. Its
...
...
@@ -179,12 +180,13 @@ class ExampleAuth
/**
* Request handler for redirect filter test.
*/
if
(
$request
->
get
(
'StateId'
)
===
null
)
{
$stateId
=
$request
->
get
(
'StateId'
);
if
(
$stateId
===
null
)
{
throw
new
Error\BadRequest
(
'Missing required StateId query parameter.'
);
}
/** @var array $state */
$state
=
$this
->
authState
::
loadState
(
$
request
->
get
(
'S
tateId
'
)
,
'exampleauth:redirectfilter-test'
);
$state
=
$this
->
authState
::
loadState
(
$
s
tateId
,
'exampleauth:redirectfilter-test'
);
$state
[
'Attributes'
][
'RedirectTest2'
]
=
[
'OK'
];
return
new
RunnableResponse
([
Auth\ProcessingChain
::
class
,
'resumeProcessing'
],
[
$state
]);
...
...
@@ -198,7 +200,7 @@ class ExampleAuth
*
* @return \SimpleSAML\HTTP\RunnableResponse
*/
public
function
resume
(
Request
$request
):
RunnableResponse
public
function
resume
(
/** @scrutinizer ignore-unused */
Request
$request
):
RunnableResponse
{
/**
* This page serves as the point where the user's authentication
...
...
This diff is collapsed.
Click to expand it.
modules/saml/lib/Auth/Process/SQLPersistentNameID.php
+
1
−
1
View file @
eff0bc55
...
...
@@ -62,7 +62,7 @@ class SQLPersistentNameID extends BaseNameIDGenerator
*
* @throws \SimpleSAML\Error\Exception If the 'attribute' option is not specified.
*/
public
function
__construct
(
array
$config
,
$reserved
)
public
function
__construct
(
array
&
$config
,
$reserved
)
{
parent
::
__construct
(
$config
,
$reserved
);
...
...
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