Commit c984bb8b authored by dcoutadeur dcoutadeur's avatar dcoutadeur dcoutadeur

fix CAS logoutServices (see #2138 logout forward doesn't work anymore)

parent 641c523b
Pipeline #8359 passed with stage
in 16 minutes and 49 seconds
......@@ -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)");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment