[Xml-compile] XML::Compile::SOAP::Daemon / Basic Real Auth
Emeline Thibault
dogma28 at hotmail.com
Thu Nov 19 10:02:08 GMT 2015
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: dogma28 at hotmail.com
To: xml-compile at lists.scsys.co.uk
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
Xml-compile at lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20151119/726d6064/attachment.htm>
More information about the Xml-compile
mailing list