public function AuthController::__construct in Auth0 Single Sign On 8
Same name and namespace in other branches
- 8.2 src/Controller/AuthController.php \Drupal\auth0\Controller\AuthController::__construct()
Inicialize the controller.
File
- src/
Controller/ AuthController.php, line 49
Class
- AuthController
- Controller routines for auth0 authentication.
Namespace
Drupal\auth0\ControllerCode
public function __construct(PrivateTempStoreFactory $tempStoreFactory, SessionManagerInterface $sessionManager) {
// Ensure the pages this controller servers never gets cached
\Drupal::service('page_cache_kill_switch')
->trigger();
$this->eventDispatcher = \Drupal::service('event_dispatcher');
$this->tempStore = $tempStoreFactory
->get(AuthController::SESSION);
$this->sessionManager = $sessionManager;
$this->logger = \Drupal::logger(AuthController::AUTH0_LOGGER);
$this->config = \Drupal::service('config.factory')
->get('auth0.settings');
$this->domain = $this->config
->get(AuthController::AUTH0_DOMAIN);
$this->client_id = $this->config
->get(AuthController::AUTH0_CLIENT_ID);
$this->client_secret = $this->config
->get(AuthController::AUTH0_CLIENT_SECRET);
$this->redirect_for_sso = $this->config
->get(AuthController::AUTH0_REDIRECT_FOR_SSO);
$this->auth0_jwt_signature_alg = $this->config
->get(AuthController::AUTH0_JWT_SIGNING_ALGORITHM);
$this->secret_base64_encoded = FALSE || $this->config
->get(AuthController::AUTH0_SECRET_ENCODED);
$this->auth0 = FALSE;
}