Strange issue with build_urlencoded
Had a strange issue this morning build_urlencoded
In LinkedIn module, we have this:
my $authn_uri = $self->linkedInAuthorizationEndpoint;
$authn_uri .= '?'
. build_urlencoded(
response_type => 'code',
client_id => $self->conf->{linkedInClientID},
redirect_uri => $callback_url,
scope => $self->conf->{linkedInScope},
state => $stateSession->id,
);
But this does not work, client_id and scope are empty in URL.
To fix I add to do:
my $authn_uri = $self->linkedInAuthorizationEndpoint;
my $client_id = $self->conf->{linkedInClientID};
my $scope = $self->conf->{linkedInScope};
$authn_uri .= '?'
. build_urlencoded(
response_type => 'code',
client_id => $client_id,
redirect_uri => $callback_url,
scope => $scope,
state => $stateSession->id,
);
Any idea about this?