diff --git a/lemonldap-ng-handler/lib/Plack/Middleware/Auth/LemonldapNG.pm b/lemonldap-ng-handler/lib/Plack/Middleware/Auth/LemonldapNG.pm index 74ccd0ea464141b78955f364c7feb03b5cf15c8d..3aa6784bceac7ae1f9e77147b516f1ec1f2acd16 100644 --- a/lemonldap-ng-handler/lib/Plack/Middleware/Auth/LemonldapNG.pm +++ b/lemonldap-ng-handler/lib/Plack/Middleware/Auth/LemonldapNG.pm @@ -75,6 +75,17 @@ Plack::Middleware::Auth::LemonldapNG - authentication middleware for Lemonldap-N $app; }; + # Or through OO Interface + my $auth_builder = Plack::Builder->new(); + $auth_builder->add_middleware( + "Auth::LemonldapNG", + llparams => { + configStorage => ... + }, + on_reject => \&on_reject + ); + $protected_app = $auth_builder->wrap($app); + =head1 DESCRIPTION Lemonldap::NG is a modular Web-SSO based on Apache::Session modules. It