RESTProxy authentication does not work with AuthChoice-enabled internal Portal
Concerned version
Version: %2.0.X
Platform: All
Summary
lmAuth parameter is missing.
Always 401 unauthorized.
Logs
Lib::RESTProxy;
sub getUser {
my ( $self, $req ) = @_;
return PE_OK if ( $req->data->{_proxyQueryDone} );
$self->logger->debug(
'Proxy push auth to ' . $self->conf->{proxyAuthService} );
my $resp = $self->ua->post( $self->conf->{proxyAuthService},
{ user => $req->{user}, password => $req->data->{password} } );
unless ( $resp->is_success ) {
$self->logger->error(
'Unable to query authentication service: ' . $resp->status_line );
return PE_ERROR;
}
Possible fixes
Append option to define internal Portal AuthChoice parameter