Neos\Flow\Security\Authentication\AuthenticationManagerInterface::getTokens PHP Метод

getTokens() публичный Метод

Note: The order of the tokens in the array is important, as the tokens will be authenticated in the given order.
public getTokens ( ) : array
Результат array
    public function getTokens();

Usage Example

Пример #1
0
 /**
  * Initializes the security context for the given request.
  *
  * @return void
  * @throws Exception
  */
 public function initialize()
 {
     if ($this->initialized === true) {
         return;
     }
     if ($this->canBeInitialized() === false) {
         throw new Exception('The security Context cannot be initialized yet. Please check if it can be initialized with $securityContext->canBeInitialized() before trying to do so.', 1358513802);
     }
     if ($this->csrfProtectionStrategy !== self::CSRF_ONE_PER_SESSION) {
         $this->csrfProtectionTokens = [];
     }
     $this->tokens = $this->mergeTokens($this->authenticationManager->getTokens(), $this->tokens);
     $this->separateActiveAndInactiveTokens();
     $this->updateTokens($this->activeTokens);
     $this->initialized = true;
 }
All Usage Examples Of Neos\Flow\Security\Authentication\AuthenticationManagerInterface::getTokens