logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plack::Middleware::Auth::LemonldapNG - authentication middleware for Lemonldap-NG

Authors

       LemonLDAP::NG team <http://lemonldap-ng.org/team>

Bug Report

       Use        OW2        system       to       report       bug       or       ask       for       features:
       <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>

Description

       Lemonldap::NG is a modular Web-SSO based on Apache::Session modules. It simplifies the build of a
       protected area with a few changes in the application.

       It manages both authentication and authorization and provides headers for accounting. So you can have a
       full AAA protection for your web space as described below.

       Plack::Middleware::Auth::LemonldapNG provides the module to protect a Plack family server.

Download

       Lemonldap::NG is available at <https://lemonldap-ng.org/download>

Name

       Plack::Middleware::Auth::LemonldapNG - authentication middleware for Lemonldap-NG

See Also

       <http://lemonldap-ng.org>, Plack, Plack::Middleware

Synopsis

         use Plack::Builder;

         my $app   = sub { ... };

         # Optionally ($proposedResponse is the PSGI response of Lemonldap::NG handler)
         #sub on_reject {
         #    my($self,$env,$proposedResponse) = @_;
         #    ...
         #}

         builder
         {
           enable "Auth::LemonldapNG";
           # Or with some LLNG args or a reject sub
           #enable "Auth::LemonldapNG",
           #  llparams => {
           #    configStorage => ...
           #  },
           #  on_reject => \&on_reject;
           $app;
         };

         # Or through OO Interface
         my $builder = Plack::Builder->new();
         $builder->add_middleware(
             "Auth::LemonldapNG",
             llparams => {
               configStorage => ...
             },
             on_reject => \&on_reject
         );
         $protected_app = $builder->wrap($app);

See Also