Commit f0af8354 authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Correct bug for artifact resolution on IDP side (#143)

parent 354a7570
...@@ -110,7 +110,7 @@ sub issuerForUnAuthUser { ...@@ -110,7 +110,7 @@ sub issuerForUnAuthUser {
# Process authentication request # Process authentication request
my $result; my $result;
if ($artifact) { if ($artifact) {
$result = $self->processArtRequestMsg( $login, $request ); $result = $self->processArtResponseMsg( $login, $request );
} }
else { else {
$result = $self->processAuthnRequestMsg( $login, $request ); $result = $self->processAuthnRequestMsg( $login, $request );
...@@ -1154,7 +1154,7 @@ sub issuerForAuthUser { ...@@ -1154,7 +1154,7 @@ sub issuerForAuthUser {
# Process authentication request # Process authentication request
my $result; my $result;
if ($artifact) { if ($artifact) {
$result = $self->processArtRequestMsg( $login, $request ); $result = $self->processArtResponseMsg( $login, $request );
} }
else { else {
$result = $self->processAuthnRequestMsg( $login, $request ); $result = $self->processAuthnRequestMsg( $login, $request );
...@@ -1561,7 +1561,7 @@ sub issuerForAuthUser { ...@@ -1561,7 +1561,7 @@ sub issuerForAuthUser {
$self->forceSignature($login); $self->forceSignature($login);
} }
else { else {
$self->lmLog( "SLO response signature according to metadata", $self->lmLog( "SSO response signature according to metadata",
'debug' ); 'debug' );
} }
...@@ -1575,9 +1575,11 @@ sub issuerForAuthUser { ...@@ -1575,9 +1575,11 @@ sub issuerForAuthUser {
# Choose method # Choose method
$artifact_method = $self->getHttpMethod("artifact-get") $artifact_method = $self->getHttpMethod("artifact-get")
if ( $method == $self->getHttpMethod("redirect") ); if ( $method == $self->getHttpMethod("redirect")
|| $method == $self->getHttpMethod("artifact-get") );
$artifact_method = $self->getHttpMethod("artifact-post") $artifact_method = $self->getHttpMethod("artifact-post")
if ( $method == $self->getHttpMethod("post") ); if ( $method == $self->getHttpMethod("post")
|| $method == $self->getHttpMethod("artifact-post") );
# Build artifact message # Build artifact message
unless ( $self->buildArtifactMsg( $login, $artifact_method ) ) { unless ( $self->buildArtifactMsg( $login, $artifact_method ) ) {
......
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