Lemonld...Request(3)
π Lemonldap::NG::Portal::Main::Request π
okay bestie, you found it β the HTTP request object that all the LLNG portal methods pass around like a lil group-chat message π«Ά. It lives in Lemonldap::NG::Portal::Main::Request, and it's documented over in the User Contributed Perl Documentation section, fr fr.
β¨ NAME β¨
Lemonldap::NG::Portal::Main::Request β the HTTP request object used inside LLNG portal methods. that's the whole vibe. π
πΈ SYNOPSIS πΈ
so here's the situation: somewhere in a plugin, you get handed a $req and it's that girl:
# Somewhere in a plugin...
sub run {
my ( $self, $req ) = @_;
# $req is a Lemonldap::NG::Portal::Main::Request object
...
}
like, that $req up there? iconic. main character energy. β¨
π¦ DESCRIPTION π¦
Lemonldap::NG::Portal::Main::Request extends Lemonldap::NG::Common::PSGI::Request, and the way that it does that is by adding all the parameters you need to manage portal jobs. no cap. it just shows up with extra pockets. π
π METHODS π
π Accessors
steps()β a stack of methods to call for this request. lowkey you can modify it to change the authentication process, which is kind of a big deal. πdata()β a free hash ref where plugins can stash their data (for the duration of one single request). using it is a LLNG best practice, so likeβ¦ do it. πpdataβ a free hash ref where plugins can store persistent data: stuff gets kept during the auth process and cleaned after a successful authentication β except if$req->pdata->{keepPdata}is set to an array of values. in that case, whichever module set those values has to remove them itself once its job ends. that's the deal, periodt. π§
β User information
id()β the session id (aka the main cookie value). πsessionInfo()β hash ref that will be stored in the session DB. πΎuser()β the username given by the authentication module, which the userDB module then uses. π€mustRedirect()β boolean that says the response must be a redirection (used, for example, when the request is a POST). π¦urlNotBase64β boolean that says the url isn't Base64 encoded. π
π Other methods
info()β store info to display in the response. π’menuError()β yeah that one's just sitting there with no description, we don't gatekeep. πnotification()β see the notification plugin for this one. πerrorType()β returnspositive/warning/negative, depending on whatever value is stored in theerrorproperty. π―
π Cookie methods
addCookie(string $cookie)β adds a cookie into the$reqresponse headers. the string is a complete cookie string, ex:"lemonldap=xxx"πͺdelCookie(string $cookieName)β removes a cookie from the$reqresponse headers. heads up tho: it doesn't remove the navigator cookie β it removes a"Set-Cookie"header if the value matches"ltcookieNamegt=...". read that carefully bestie. π
π₯ SEE ALSO π₯
<http://lemonldap-ng.org/>, Lemonldap::NG::Common::PSGI::Request
π AUTHORS π
LemonLDAP::NG team <http://lemonldap-ng.org/team>
π BUG REPORT π
use the OW2 system to report a bug or ask for features: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
β¬οΈ DOWNLOAD β¬οΈ
Lemonldap::NG is available at <https://lemonldap-ng.org/download>
π COPYRIGHT AND LICENSE π
see the COPYING file for details.
this library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program. if not, see <http://www.gnu.org/licenses/>.
ngl, that warranty disclaimer is giving "we are not responsible for your feelings" but legally. respect. π«‘
and that's the whole page, bestie!! π this one was rendered by perl v5.42.3 and dated 2026-09-24 β so go forth, pass your $req around responsibly, and slay β¨π¦π
π¦ where this page comes from
- fedora 43: lemonldap-ng-portal 2.23.4-1.fc43 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- fedora 44: lemonldap-ng-portal 2.23.4-1.fc44 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms