Callback Identifier
Factory class for creating identifier instances from configuration
Jwt Subject aka "sub" identifier.
This is mostly a convenience class that just overrides the defaults of the TokenIdentifier.
LDAP Identifier
Identifies authentication credentials using LDAP.
new LdapIdentifier([
'host' => 'ldap.example.com',
'bindDN' => function($username) {
return $username; //transform into a rdn or dn
},
'options' => [
LDAP_OPT_PROTOCOL_VERSION => 3
]
]);
Password Identifier
Identifies authentication credentials with password
new PasswordIdentifier([
'fields' => [
'username' => ['username', 'email'],
'password' => 'password'
]
]);
When configuring PasswordIdentifier you can pass in config to which fields, model and additional conditions are used.
Token Identifier