final class SamlauthEvents in SAML Authentication 8.3
Same name and namespace in other branches
- 8.2 src/Event/SamlauthEvents.php \Drupal\samlauth\Event\SamlauthEvents
- 4.x src/Event/SamlauthEvents.php \Drupal\samlauth\Event\SamlauthEvents
Defines events for the samlauth module.
Hierarchy
- class \Drupal\samlauth\Event\SamlauthEvents
Expanded class hierarchy of SamlauthEvents
See also
\Drupal\samlauth\Event\SamlauthUserSyncEvent
5 files declare their use of SamlauthEvents
- SamlService.php in src/
SamlService.php - TestSamlauthEventSubscriber.php in test_resources/
samlauth_test/ src/ EventSubscriber/ TestSamlauthEventSubscriber.php - UserFieldsEventSubscriber.php in modules/
samlauth_user_fields/ src/ EventSubscriber/ UserFieldsEventSubscriber.php - UserRolesEventSubscriber.php in modules/
samlauth_user_roles/ src/ EventSubscriber/ UserRolesEventSubscriber.php - UserSyncEventSubscriber.php in src/
EventSubscriber/ UserSyncEventSubscriber.php
File
- src/
Event/ SamlauthEvents.php, line 10
Namespace
Drupal\samlauth\EventView source
final class SamlauthEvents {
/**
* Name of the event fired when searching for a user to match SAML attributes.
*
* The event allows modules to link existing user accounts to an authname
* through the externalauth mechanism (see externalauth module). The event
* listener method receives a Drupal\samlauth\Event\SamlauthUserLinkEvent
* instance. If it finds an account to link, it should call the event's
* setLinkedAccount() method.
*
* @Event
*
* @see \Drupal\samlauth\Event\SamlauthUserLinkEvent
*
* @var string
*/
const USER_LINK = 'samlauth.user_link';
/**
* Name of the event fired when a user is synchronized from SAML attributes.
*
* The event allows modules to synchronize user account values with SAML
* attributes passed by the IdP in the authentication response. Basic required
* properties (username, email) are already synchronized. The event listener
* method receives a \Drupal\samlauth\Event\SamlauthUserSyncEvent instance. If
* it changes the account, it should call the event's markAccountChanged()
* method rather than saving the account by itself.
*
* The event is fired after the SP / samlauth library validates the IdP's
* authentication response but before the Drupal user is logged in. An event
* subscriber may throw an exception to prevent the login.
*
* @Event
*
* @see \Drupal\samlauth\Event\SamlauthUserSyncEvent
*
* @var string
*/
const USER_SYNC = 'samlauth.user_sync';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SamlauthEvents:: |
constant | Name of the event fired when searching for a user to match SAML attributes. | ||
SamlauthEvents:: |
constant | Name of the event fired when a user is synchronized from SAML attributes. |