Overzealous cleaning of pdata during the issuer process
At a customer's site, we wrote a plugin that maintains state with pdata even after the user has logged in.
However, every time the (in my case SAML) issuer handles a request, that pdata gets cleared:
sub _forAuthUser {
my ( $self, $req, @path ) = @_;
[...]
# Clean pdata: keepPdata has been set, so pdata must be cleaned here
$req->pdata( {} )
[...]
return $self->p->do(
$req,
[
'importHandlerData',
'controlUrl',
@{ $self->p->forAuthUser },
@guimard could we modify this pdata clearing to only remove some of the pdata keys ?
In my initial tests, removing the $self->ipath
, $self->ipath."Path"
and _url
keys seems to be enough to make unit tests happy