Commit a8fd9404 authored by Yadd's avatar Yadd
Browse files

SAML Redirect in progress (#595)

parent 06370793
......@@ -879,8 +879,10 @@ sub run {
$self->lmLog( "Redirect user to $sso_url", 'debug' );
$req->{urldc} = $sso_url;
$req->mustRedirect(1);
$req->steps([]);
return $self->_subProcess(qw(autoRedirect));
return PE_OK;
}
# HTTP-POST
......
......@@ -2961,13 +2961,13 @@ sub getQueryString {
my $query_string;
if ( $self->conf->{samlUseQueryStringSpecific} ) {
my @pairs = split( /&/, $req->query );
my @pairs = split( /&/, $req->param('issuerQuery') || $req->query );
$query_string = join( ';', @pairs );
}
else {
# TODO: verify this
$query_string = $req->query;
$query_string = $req->param('issuerQuery') || $req->query;
}
return $query_string;
......
......@@ -54,6 +54,7 @@ sub _redirect {
$self->p->setHiddenFormValue( $req, $k, $prms->{$k}, '', 0 );
}
$self->p->setHiddenFormValue( $req, 'issuerMethod', $req->method, '', 0);
$self->p->setHiddenFormValue( $req, 'issuerQuery', $req->query, '', 0);
$req->{urldc} =
$self->conf->{portal}
. $req->path
......
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