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
d66f956f
Unverified
Commit
d66f956f
authored
6 years ago
by
Tim van Dijen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
PSR2
parent
90b3e4ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/cdc/lib/Server.php
+7
-7
7 additions, 7 deletions
modules/cdc/lib/Server.php
with
7 additions
and
7 deletions
modules/cdc/lib/Server.php
+
7
−
7
View file @
d66f956f
...
...
@@ -57,7 +57,7 @@ class Server
$config
=
$cdcConfig
->
getConfigItem
(
$domain
,
null
);
if
(
$config
===
null
)
{
throw
new
\SimpleSAML\Error\Exception
(
'Unknown CDC domain: '
.
var_export
(
$domain
,
true
));
throw
new
\SimpleSAML\Error\Exception
(
'Unknown CDC domain: '
.
var_export
(
$domain
,
true
));
}
$this
->
domain
=
$domain
;
...
...
@@ -66,7 +66,7 @@ class Server
$this
->
cookieLifetime
=
$config
->
getInteger
(
'cookie.lifetime'
,
0
);
if
(
$this
->
key
===
'ExampleSharedKey'
)
{
throw
new
\SimpleSAML\Error\Exception
(
'Key for CDC domain '
.
var_export
(
$domain
,
true
)
.
' not changed from default.'
);
throw
new
\SimpleSAML\Error\Exception
(
'Key for CDC domain '
.
var_export
(
$domain
,
true
)
.
' not changed from default.'
);
}
}
...
...
@@ -138,7 +138,7 @@ class Server
}
$op
=
(
string
)
$request
[
'op'
];
\SimpleSAML\Logger
::
info
(
'Received CDC request with "op": '
.
var_export
(
$op
,
true
));
\SimpleSAML\Logger
::
info
(
'Received CDC request with "op": '
.
var_export
(
$op
,
true
));
if
(
!
isset
(
$request
[
'return'
]))
{
throw
new
\SimpleSAML\Error\BadRequest
(
'Missing "return" in CDC request.'
);
...
...
@@ -179,7 +179,7 @@ class Server
* Handle an append request.
*
* @param array $request The request.
* @return
array
The response.
* @return
string
The response.
*/
private
function
handleAppend
(
array
$request
)
{
...
...
@@ -206,13 +206,13 @@ class Server
* Handle a delete request.
*
* @param array $request The request.
* @return
array
The response.
* @return
string
The response.
*/
private
function
handleDelete
(
array
$request
)
{
$params
=
array
(
'path'
=>
'/'
,
'domain'
=>
'.'
.
$this
->
domain
,
'domain'
=>
'.'
.
$this
->
domain
,
'secure'
=>
true
,
'httponly'
=>
false
,
);
...
...
@@ -412,7 +412,7 @@ class Server
$params
=
array
(
'lifetime'
=>
$this
->
cookieLifetime
,
'path'
=>
'/'
,
'domain'
=>
'.'
.
$this
->
domain
,
'domain'
=>
'.'
.
$this
->
domain
,
'secure'
=>
true
,
'httponly'
=>
false
,
);
...
...
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