table of contents
- bookworm 2.16.1+ds-deb12u3
- bookworm-backports 2.20.1+ds-1~bpo12+1
- testing 2.20.1+ds-1
- unstable 2.20.1+ds-1
Lemonldap::NG::Portal::Lib::2fDevices(3pm) | User Contributed Perl Documentation | Lemonldap::NG::Portal::Lib::2fDevices(3pm) |
NAME¶
Lemonldap::NG::Portal::Lib::2fDevices - Role for registrable second factors
DESCRIPTION¶
This role provides LemonLDAP::NG modules with a high-level interface to storing information on registrable second factors into the persistent session.
It is recommended that _2fDevices is never accessed directly from code outside of this module
METHODS¶
- update2fDevice
- Updates one field of a registered device
$self->update2fDevice($req, $info, $type, $key, $value, $update_key, $update_value);
Returns true if the update was sucessful
- add2fDevice
- Register a new device
$self->add2fDevice($req, $info, $device);
Returns true if the update was sucessful
- del2fDevices
- Delete the devices specified in the @$devices array
$self->del2fDevices($req, $info, $devices);
- req: Current LemonLDAP::NG request
- info: hashref of current session information
- device: arrayref of type+epoch hashrefs
-
[ { type => xxx, epoch => xxx }, { type => xxx, epoch => xxx } ]
Returns true if the update was sucessful
- del2fDevice
- Delete a single device
$self->del2fDevice($req, $info, $type, $epoch);
Returns true if the update was sucessful
- find2fDevicesByKey
- Find devices from one of its attributes
$self->find2fDevicesByKey($req, $info, $type, $key, $value);
Returns an array of devices for which type, key and value match the supplied ones
- get2fDevices
- Return all registrable devices.
$self->get2fDevices($req, $info);
Returns an arrayref of all registrable devices, or undef if an error occured
- find2fDevicesByType
- Return all registrable devices of a certain type. If type is not given,
return all registrable devices
$self->find2fDevicesByType($req, $info, $type);
Returns an array of all matching devices
2023-09-29 | perl v5.36.0 |