From ad1244f272b0b25fa30069f2eac341ce8c581518 Mon Sep 17 00:00:00 2001 From: Alexandre KARIM Date: Mon, 6 Sep 2021 14:18:10 +0200 Subject: [PATCH] Append spoofId parameter (#2601) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm index 9ff48d440..7b1fe653d 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm @@ -49,6 +49,11 @@ sub getUser { $self->conf->{proxyAuthServiceChoiceValue} ) : () ), + ( + $self->conf->{impersonationRule} && $req->param('spoofId') + ? ( spoofId => $req->param('spoofId') ) + : () + ) } ); unless ( $resp->is_success ) {