You are here

SocialAuthEvents.php in Social Auth 8.2

Same filename and directory in other branches
  1. 8 src/Event/SocialAuthEvents.php
  2. 3.x src/Event/SocialAuthEvents.php

File

src/Event/SocialAuthEvents.php
View source
<?php

namespace Drupal\social_auth\Event;


/**
 * Defines Social Auth Events constants.
 */
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';

}

Classes

Namesort descending Description
SocialAuthEvents Defines Social Auth Events constants.