You are here

final class SocialAuthEvents in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/Event/SocialAuthEvents.php \Drupal\social_auth\Event\SocialAuthEvents
  2. 8 src/Event/SocialAuthEvents.php \Drupal\social_auth\Event\SocialAuthEvents

Defines Social Auth Events constants.

Hierarchy

Expanded class hierarchy of SocialAuthEvents

2 files declare their use of SocialAuthEvents
UserAuthenticator.php in src/User/UserAuthenticator.php
UserManager.php in src/User/UserManager.php

File

src/Event/SocialAuthEvents.php, line 8

Namespace

Drupal\social_auth\Event
View source
final class SocialAuthEvents {

  /**
   * Dispatched event when social auth is gathering user fields.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\UserFieldsEvent
   *
   * @var string
   */
  const USER_FIELDS = 'social_auth.user.fields';

  /**
   * Dispatched event when a new user is created via social auth.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\UserEvent
   *
   * @var string
   */
  const USER_CREATED = 'social_auth.user.created';

  /**
   * Dispatched event when a new user login using social auth.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\UserEvent
   *
   * @var string
   */
  const USER_LOGIN = 'social_auth.user.login';

  /**
   * Dispatched event before redirecting to provider.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\BeforeRedirectEvent
   *
   * @var string
   */
  const BEFORE_REDIRECT = 'social_auth.before_redirect';

  /**
   * Dispatched event after authentication fails in provider.
   *
   * @Event
   *
   * @see \Drupal\social_auth\Event\FailedAuthenticationEvent
   *
   * @var string
   */
  const FAILED_AUTH = 'social_auth.failed_authentication';

}

Members

Namesort descending Modifiers Type Description Overrides
SocialAuthEvents::BEFORE_REDIRECT constant Dispatched event before redirecting to provider.
SocialAuthEvents::FAILED_AUTH constant Dispatched event after authentication fails in provider.
SocialAuthEvents::USER_CREATED constant Dispatched event when a new user is created via social auth.
SocialAuthEvents::USER_FIELDS constant Dispatched event when social auth is gathering user fields.
SocialAuthEvents::USER_LOGIN constant Dispatched event when a new user login using social auth.