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
d8b85655
Commit
d8b85655
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Substitute "or" and "and" operators by "||" and "&&", respectively.
parent
98cf7c1d
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/adfs/lib/IdP/ADFS.php
+1
-1
1 addition, 1 deletion
modules/adfs/lib/IdP/ADFS.php
modules/negotiate/lib/Auth/Source/Negotiate.php
+3
-3
3 additions, 3 deletions
modules/negotiate/lib/Auth/Source/Negotiate.php
with
4 additions
and
4 deletions
modules/adfs/lib/IdP/ADFS.php
+
1
−
1
View file @
d8b85655
...
@@ -75,7 +75,7 @@ class sspmod_adfs_IdP_ADFS {
...
@@ -75,7 +75,7 @@ class sspmod_adfs_IdP_ADFS {
$hasValue
=
FALSE
;
$hasValue
=
FALSE
;
$r
=
'<saml:Attribute AttributeNamespace="http://schemas.xmlsoap.org/claims" AttributeName="'
.
htmlspecialchars
(
$name
)
.
'">'
;
$r
=
'<saml:Attribute AttributeNamespace="http://schemas.xmlsoap.org/claims" AttributeName="'
.
htmlspecialchars
(
$name
)
.
'">'
;
foreach
(
$values
as
$value
)
{
foreach
(
$values
as
$value
)
{
if
(
(
!
isset
(
$value
))
or
(
$value
===
''
))
continue
;
if
(
(
!
isset
(
$value
))
||
(
$value
===
''
))
continue
;
$r
.
=
'<saml:AttributeValue>'
.
htmlspecialchars
(
$value
)
.
'</saml:AttributeValue>'
;
$r
.
=
'<saml:AttributeValue>'
.
htmlspecialchars
(
$value
)
.
'</saml:AttributeValue>'
;
$hasValue
=
TRUE
;
$hasValue
=
TRUE
;
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/negotiate/lib/Auth/Source/Negotiate.php
+
3
−
3
View file @
d8b85655
...
@@ -75,15 +75,15 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source {
...
@@ -75,15 +75,15 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source {
// Check for disabled SPs. The disable flag is store in the SP
// Check for disabled SPs. The disable flag is store in the SP
// metadata.
// metadata.
if
(
array_key_exists
(
'SPMetadata'
,
$state
)
and
$this
->
spDisabledInMetadata
(
$state
[
'SPMetadata'
]))
if
(
array_key_exists
(
'SPMetadata'
,
$state
)
&&
$this
->
spDisabledInMetadata
(
$state
[
'SPMetadata'
]))
$this
->
fallBack
(
$state
);
$this
->
fallBack
(
$state
);
// Go straight to fallback if Negotiate is disabled or if you are
// Go straight to fallback if Negotiate is disabled or if you are
// sent back to the IdP directly from the SP after having logged out
// sent back to the IdP directly from the SP after having logged out
$session
=
SimpleSAML_Session
::
getSessionFromRequest
();
$session
=
SimpleSAML_Session
::
getSessionFromRequest
();
$disabled
=
$session
->
getData
(
'negotiate:disable'
,
'session'
);
$disabled
=
$session
->
getData
(
'negotiate:disable'
,
'session'
);
if
(
$disabled
or
if
(
$disabled
||
(
!
empty
(
$_COOKIE
[
'NEGOTIATE_AUTOLOGIN_DISABLE_PERMANENT'
])
and
(
!
empty
(
$_COOKIE
[
'NEGOTIATE_AUTOLOGIN_DISABLE_PERMANENT'
])
&&
$_COOKIE
[
'NEGOTIATE_AUTOLOGIN_DISABLE_PERMANENT'
]
==
'True'
))
{
$_COOKIE
[
'NEGOTIATE_AUTOLOGIN_DISABLE_PERMANENT'
]
==
'True'
))
{
SimpleSAML_Logger
::
debug
(
'Negotiate - session disabled. falling back'
);
SimpleSAML_Logger
::
debug
(
'Negotiate - session disabled. falling back'
);
$this
->
fallBack
(
$state
);
$this
->
fallBack
(
$state
);
...
...
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