Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Joomla\Plugin\System\Webauthn\PluginTraits

Fonctions

 mustDisplayButton ()
 
 getUserFromData ($data)
 
 canEditUser (?User $user=null)
 

Variables

trait AdditionalLoginButtons
 
 $injectedCSSandJS = false
 
trait UserProfileFields
 

Documentation des fonctions

◆ canEditUser()

Joomla\Plugin\System\Webauthn\PluginTraits\canEditUser ( ?User  $user = null)
private

Is the current user allowed to edit the WebAuthn configuration of $user?

To do so I must either be editing my own account OR I have to be a Super User.

Paramètres
?User$user The user you want to know if we're allowed to edit
Renvoie
boolean
Depuis
4.2.0

Références $user.

◆ getUserFromData()

Joomla\Plugin\System\Webauthn\PluginTraits\getUserFromData (   $data)
private

Get the user object based on the ID found in the provided user form data

Paramètres
array | object | null$dataThe user form data
Renvoie
User|null A user object or null if no match is found
Exceptions
Exception
Depuis
4.0.0

Références $data, $id, $user, class, elseif, Factory\getApplication(), Factory\getContainer(), et null.

◆ mustDisplayButton()

Joomla\Plugin\System\Webauthn\PluginTraits\mustDisplayButton ( )
private

Should I allow this plugin to add a WebAuthn login button?

Renvoie
boolean
Depuis
4.0.0

Do not add a WebAuthn login button if we are already logged in

Only display a button on HTML output

WebAuthn only works on HTTPS. This is a security-related limitation of the W3C Web Authentication specification, not an issue with this plugin :)

Références $document, Joomla\CMS\Application\getIdentity(), Uri\getInstance(), et null.

Documentation des variables

◆ $injectedCSSandJS

$injectedCSSandJS = false
private

◆ AdditionalLoginButtons

trait AdditionalLoginButtons
Valeur initiale :
{
protected $allowButtonDisplay = null
! $readonly null
Definition: layouts/joomla/form/field/calendar.php:80

Inserts Webauthn buttons into login modules

Depuis
4.0.0

◆ UserProfileFields

trait UserProfileFields
Valeur initiale :
{
private static $userFromFormData = null
! $readonly null
Definition: layouts/joomla/form/field/calendar.php:80

Add extra fields in the User Profile page.

This class only injects the custom form fields. The actual interface is rendered through JFormFieldWebauthn.

Voir également
JFormFieldWebauthn::getInput()
Depuis
4.0.0