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

Lemonldap::NG::Portal::Main::Request - HTTP request object used in LLNG portal methods.

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::Portal::Main::Request extends Lemonldap::NG::Common::PSGI::Request to add all parameters
       needed to manage portal jobs.

Download

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

Methods

Accessorssteps()

       Stack of methods to call for this requests. It can be modified to change authentication process

       data()

       Free hash ref where plugins can store their data (during one request). Using it is a LLNG best practice

       pdata

       Free hash ref where plugins can store some persistent data: data are kept during auth process and cleaned
       after successful authentication, except if "$req->pdata->{keepPdata}" is set to an array of values. In
       this case, module that has set these values must remove them after its job ends.

       Userinformationid()

       Session id (main cookie value).

       sessionInfo()

       Hash ref that will be stored in session DB.

       user()

       Username given by authentication module, used by userDB module.

       mustRedirect()

       Boolean to indicate that response must be a redirection (used for example when request is a POST).

       urlNotBase64

       Boolean to indicate that url isn't Base64 encoded.

   Othermethodsinfo()

       Store info to display in response.

       menuError()notification()

       see notification plugin.

       errorType()

       Returns positive/warning/negative depending on value stored in error property.

   Cookiemethods
       addCookie(string $cookie): add cookie in $req response headers. String is a complete cookie string, ex:
       "lemonldap=xxx"
       delCookie(string $cookieName): remove cookie from $req response headers. It doesn't remove navigator
       cookie but remove a "Set-Cookie" header if value match "ltcookieNamegt=..."

Name

       Lemonldap::NG::Portal::Main::Request - HTTP request object used in LLNG portal methods.

See Also

       <http://lemonldap-ng.org/>, Lemonldap::NG::Common::PSGI::Request

Synopsis

         # Somewhere in a plugin...
         sub run {
             my ( $self, $req ) = @_;
             # $req is a Lemonldap::NG::Portal::Main::Request object
             ...
         }

See Also