Commit b7c66b94 authored by Yadd's avatar Yadd
Browse files

Test skeleton for SAML Redirect (#595)

parent 310896e6
......@@ -355,6 +355,7 @@ t/27-AuthProxy.t
t/28-AuthChoice.t
t/29-AuthSSL.t
t/30-Auth-and-issuer-SAML-POST.t
t/30-Auth-and-issuer-SAML-Redirect.t
t/40-Notifications-DBI.t
t/50-IssuerGet.t
t/90-translations.t
......
......@@ -5,6 +5,7 @@ use Mouse;
use Lemonldap::NG::Portal::Main::Constants qw(
PE_CONFIRM
PE_LOGOUT_OK
PE_REDIRECT
PE_OK
PE_SAML_ART_ERROR
PE_SAML_CONDITIONS_ERROR
......@@ -706,7 +707,7 @@ sub extractFormInfo {
$req->urldc($slo_url);
$req->steps( [] );
return PE_OK;
return PE_REDIRECT;
}
# HTTP-POST
......@@ -757,7 +758,7 @@ sub extractFormInfo {
# Redirect user
$req->mustRedirect(1);
$req->steps( [] );
return PE_OK;
return PE_REDIRECT;
}
}
......@@ -1032,8 +1033,7 @@ sub extractFormInfo {
$req->urldc($sso_url);
$req->steps( [] );
return PE_OK;
return PE_REDIRECT;
}
# HTTP-POST
......@@ -1310,7 +1310,7 @@ sub authLogout {
$req->urldc($slo_url);
# Redirect done in Portal/Simple.pm
return PE_OK;
return PE_REDIRECT;
}
# HTTP-POST
......@@ -1467,7 +1467,7 @@ sub getIDP {
$req->urldc($cdc_reader_url);
$req->steps( [] );
return PE_OK;
return PE_REDIRECT;
}
$self->lmLog( 'No IDP found', 'debug' ) unless ($idp);
......
This diff is collapsed.
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