Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dcoutadeur dcoutadeur
lemonldap-ng
Commits
c984bb8b
Commit
c984bb8b
authored
Apr 17, 2020
by
dcoutadeur dcoutadeur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CAS logoutServices (see #2138 logout forward doesn't work anymore)
parent
641c523b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm
+17
-3
No files found.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Process.pm
View file @
c984bb8b
...
...
@@ -198,9 +198,23 @@ sub deleteSession {
}
}
# Merge logoutServices from user context (for example CAS logoutServices
# url) and from global configuration
if
(
$self
->
{'
conf
'}
->
{'
logoutServices
'}
and
%
{
$self
->
{'
conf
'}
->
{'
logoutServices
'}
}
)
{
# initialize logoutServices (if not already done)
$req
->
data
->
{
logoutServices
}
=
{}
unless
$req
->
data
->
{
logoutServices
};
$req
->
data
->
{
logoutServices
}
=
{
%
{
$req
->
data
->
{
logoutServices
}
},
%
{
$self
->
{'
conf
'}
->
{'
logoutServices
'}
}
};
}
# TODO
# Collect logout services and build hidden iFrames
if
(
$
self
->
{'
conf
'}
->
{
'
logoutServices
'
}
and
%
{
$
self
->
{'
conf
'}
->
{
'
logoutServices
'
}
}
)
{
if
(
$
req
->
data
->
{
logoutServices
}
and
%
{
$
req
->
data
->
{
logoutServices
}
}
)
{
$self
->
logger
->
debug
("
Create iFrames to forward logout to services
");
...
...
@@ -211,10 +225,10 @@ sub deleteSession {
)
);
foreach
(
keys
%
{
$
self
->
{'
conf
'}
->
{
'
logoutServices
'
}
}
)
{
foreach
(
keys
%
{
$
req
->
data
->
{
logoutServices
}
}
)
{
my
$logoutServiceName
=
$_
;
my
$logoutServiceUrl
=
$
self
->
{'
conf
'}
->
{
'
logoutServices
'
}
->
{
$logoutServiceName
};
$
req
->
data
->
{
logoutServices
}
->
{
$logoutServiceName
};
$self
->
logger
->
debug
(
"
Find logout service
$logoutServiceName
(
$logoutServiceUrl
)
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment