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 ([email protected]) [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 [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net _______________________________________________ Xml-compile mailing list [email protected] http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
