<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>I succeeded via Plack::Middleware::Auth::Basic<br>How I did it:
<br><br>...<br>my $daemon = XML::Compile::SOAP::Daemon::PSGI->new(...);<br>...<br>$daemon->operationsFromWSDL(<br> $wsdl,<br> callbacks => {...}<br>);<br><br># Set up PSGI app<br>#$daemon->to_app;<br>my %map = ( admin => "password" );<br>builder {<br> enable "Auth::Basic", authenticator => \&cb;<br> $daemon;<br>};<br><br>sub cb {<br> my ( $username, $password ) = @_;<br> return $map{$username} && $password eq $map{$username};<br>}<br><br><br><br><div><hr id="stopSpelling">From: dogma28@hotmail.com<br>To: xml-compile@lists.scsys.co.uk<br>Date: Tue, 17 Nov 2015 11:25:41 +0000<br>Subject: [Xml-compile] XML::Compile::SOAP::Daemon / Basic Real Auth<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi,
<br><br>I have created webservice with "XML::Compile::SOAP::Daemon::PSGI.<br>Now, I must set up a HTTP Basic authentication, but I do not see how, would you give me a idea to do this ?<br><br>Thanks.                                            </div>
<br>_______________________________________________
Xml-compile mailing list
Xml-compile@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile</div>                                            </div></body>
</html>