Catch SAML SLO relay URLS (#1056)
This commit is contained in:
parent
b4cd5eecd1
commit
745a8ffb81
|
@ -75,13 +75,10 @@ sub issuerForUnAuthUser {
|
|||
2 );
|
||||
my $saml_ars_url = $self->getMetaDataURL(
|
||||
"samlIDPSSODescriptorArtifactResolutionServiceArtifact");
|
||||
my $saml_slo_url_relay_soap =
|
||||
$self->{portal} . '/saml/relaySingleLogoutSOAP';
|
||||
my $saml_slo_url_relay_post =
|
||||
$self->{portal} . '/saml/relaySingleLogoutPOST';
|
||||
my $saml_slo_url_relay_term =
|
||||
$self->{portal} . '/saml/relaySingleLogoutTermination';
|
||||
my $saml_att_soap_url = $self->getMetaDataURL(
|
||||
my $saml_slo_url_relay_soap = '/saml/relaySingleLogoutSOAP';
|
||||
my $saml_slo_url_relay_post = '/saml/relaySingleLogoutPOST';
|
||||
my $saml_slo_url_relay_term = '/saml/relaySingleLogoutTermination';
|
||||
my $saml_att_soap_url = $self->getMetaDataURL(
|
||||
"samlAttributeAuthorityDescriptorAttributeServiceSOAP", 1 );
|
||||
|
||||
# Get HTTP request informations to know
|
||||
|
|
|
@ -2546,6 +2546,10 @@ sub sendLogoutRequestToProvider {
|
|||
return ( 0, $method, undef );
|
||||
}
|
||||
|
||||
# Get portal value
|
||||
my $portal = $self->{portal};
|
||||
$portal =~ s/\/$//;
|
||||
|
||||
# Send logout request to the provider depending of the request method
|
||||
# HTTP-REDIRECT
|
||||
if ( $method == Lasso::Constants::HTTP_METHOD_REDIRECT ) {
|
||||
|
@ -2591,8 +2595,7 @@ sub sendLogoutRequestToProvider {
|
|||
my $relayID = $relayInfos->id;
|
||||
|
||||
# Build the URL that could be used to play this logout request
|
||||
my $slo_url =
|
||||
$self->{portal} . '/saml/relaySingleLogoutPOST?relay=' . $relayID;
|
||||
my $slo_url = $portal . '/saml/relaySingleLogoutPOST?relay=' . $relayID;
|
||||
|
||||
# Create iFrame
|
||||
$info .=
|
||||
|
@ -2641,7 +2644,7 @@ sub sendLogoutRequestToProvider {
|
|||
|
||||
# Build the URL that could be used to play this logout request
|
||||
my $slo_url =
|
||||
$self->{portal} . '/saml/relaySingleLogoutSOAP?relay=' . $relayID;
|
||||
$portal . '/saml/relaySingleLogoutSOAP?relay=' . $relayID;
|
||||
|
||||
# Display information to the user
|
||||
$info .= '<tr>'
|
||||
|
|
Loading…
Reference in New Issue
Block a user