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
9c3d26ab
Commit
9c3d26ab
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Some more fixes for the new SimpleSAML\Module and SimpleSAML\Logger.
parent
d42386e9
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
lib/SimpleSAML/Utils/Auth.php
+4
-2
4 additions, 2 deletions
lib/SimpleSAML/Utils/Auth.php
lib/SimpleSAML/Utils/XML.php
+7
-7
7 additions, 7 deletions
lib/SimpleSAML/Utils/XML.php
with
11 additions
and
9 deletions
lib/SimpleSAML/Utils/Auth.php
+
4
−
2
View file @
9c3d26ab
<?php
<?php
namespace
SimpleSAML\Utils
;
namespace
SimpleSAML\Utils
;
use
SimpleSAML\Module
;
/**
/**
* Auth-related utility methods.
* Auth-related utility methods.
*
*
...
@@ -24,10 +26,10 @@ class Auth
...
@@ -24,10 +26,10 @@ class Auth
}
}
if
(
$returnTo
===
null
)
{
if
(
$returnTo
===
null
)
{
$returnTo
=
\SimpleSAML\Utils\
HTTP
::
getSelfURL
();
$returnTo
=
HTTP
::
getSelfURL
();
}
}
return
\SimpleSAML_
Module
::
getModuleURL
(
'core/login-admin.php'
,
array
(
'ReturnTo'
=>
$returnTo
));
return
Module
::
getModuleURL
(
'core/login-admin.php'
,
array
(
'ReturnTo'
=>
$returnTo
));
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
lib/SimpleSAML/Utils/XML.php
+
7
−
7
View file @
9c3d26ab
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
namespace
SimpleSAML\Utils
;
namespace
SimpleSAML\Utils
;
use
SimpleSAML\Logger
;
use
Symfony\Component\Config\Definition\Exception\Exception
;
use
Symfony\Component\Config\Definition\Exception\Exception
;
class
XML
class
XML
...
@@ -59,7 +59,7 @@ class XML
...
@@ -59,7 +59,7 @@ class XML
$result
=
self
::
isValid
(
$message
,
'saml-schema-metadata-2.0.xsd'
);
$result
=
self
::
isValid
(
$message
,
'saml-schema-metadata-2.0.xsd'
);
}
}
if
(
$result
!==
true
)
{
if
(
$result
!==
true
)
{
\SimpleSAML_
Logger
::
warning
(
$result
);
Logger
::
warning
(
$result
);
}
}
}
}
...
@@ -97,16 +97,16 @@ class XML
...
@@ -97,16 +97,16 @@ class XML
switch
(
$type
)
{
switch
(
$type
)
{
case
'in'
:
case
'in'
:
\SimpleSAML_
Logger
::
debug
(
'Received message:'
);
Logger
::
debug
(
'Received message:'
);
break
;
break
;
case
'out'
:
case
'out'
:
\SimpleSAML_
Logger
::
debug
(
'Sending message:'
);
Logger
::
debug
(
'Sending message:'
);
break
;
break
;
case
'decrypt'
:
case
'decrypt'
:
\SimpleSAML_
Logger
::
debug
(
'Decrypted message:'
);
Logger
::
debug
(
'Decrypted message:'
);
break
;
break
;
case
'encrypt'
:
case
'encrypt'
:
\SimpleSAML_
Logger
::
debug
(
'Encrypted message:'
);
Logger
::
debug
(
'Encrypted message:'
);
break
;
break
;
default
:
default
:
assert
(
false
);
assert
(
false
);
...
@@ -114,7 +114,7 @@ class XML
...
@@ -114,7 +114,7 @@ class XML
$str
=
self
::
formatXMLString
(
$message
);
$str
=
self
::
formatXMLString
(
$message
);
foreach
(
explode
(
"
\n
"
,
$str
)
as
$line
)
{
foreach
(
explode
(
"
\n
"
,
$str
)
as
$line
)
{
\SimpleSAML_
Logger
::
debug
(
$line
);
Logger
::
debug
(
$line
);
}
}
}
}
...
...
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