Store initial method in issuers (#595)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 9 years ago
parent 24e4827f40
commit 3e0c1b5633
  1. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Issuer/SAML.pm
  2. 1
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Issuer.pm

@ -102,7 +102,7 @@ sub run {
# Get HTTP request informations to know
# if we are receving SAML request or response
my $url = $req->uri;
my $request_method = $req->method();
my $request_method = $req->param('issuerMethod') || $req->method;
my $content_type = $req->contentType();
my $idp_initiated = $req->param('IDPInitiated');
my $idp_initiated_sp = $req->param('sp');

@ -53,6 +53,7 @@ sub _redirect {
foreach my $k ( keys %$prms ) {
$self->p->setHiddenFormValue( $req, $k, $prms->{$k}, '', 0 );
}
$self->p->setHiddenFormValue( $req, 'issuerMethod', $req->method, '', 0);
$req->{urldc} =
$self->conf->{portal}
. $req->path

Loading…
Cancel
Save