[Xml-compile] XML::Compile::SOAP::Daemon / Basic Real Auth
Mark Overmeer
mark at overmeer.net
Tue Nov 24 08:34:34 GMT 2015
Hi Emeline,
[sorry that my answer got delayed: organized and spoke on a conference
last week]
The solution looks totally unrelated to XML::Compile::SOAP::Daemon::PSGI.
Still, I would like to include your example on that page. Ok?
What does this mean: #$daemon->to_app;
Is that needed (I never use Plack)
* Emeline Thibault (dogma28 at hotmail.com) [151119 10:02]:
> 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};
> }
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list