Hi,
I succeeded via Plack::Middleware::Auth::Basic
How I did it:
...
my $daemon = XML::Compile::SOAP::Daemon::PSGI->new(...);
...
$daemon->operationsFromWSDL(
$wsdl,
callbacks => {...}
);
# Set up PSGI app
#$daemon->to_app;
my %map = ( admin => "password" );
builder {
enable "Auth::Basic", authenticator => \&cb;
$daemon;
};
sub cb {
my ( $username, $password ) = @_;
return $map{$username} && $password eq $map{$username};
}
From: [email protected]
To: [email protected]
Date: Tue, 17 Nov 2015 11:25:41 +0000
Subject: [Xml-compile] XML::Compile::SOAP::Daemon / Basic Real Auth
Hi,
I have created webservice with "XML::Compile::SOAP::Daemon::PSGI.
Now, I must set up a HTTP Basic authentication, but I do not see how, would you
give me a idea to do this ?
Thanks.
_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
_______________________________________________
Xml-compile mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile