示例#1
0
 /**
  * Returns the account if one is authenticated, NULL otherwise.
  *
  * @todo remove this method for using parent.
  *
  * @return \TYPO3\Flow\Security\Account An account object
  */
 public function getAccount()
 {
     return parent::getAccount();
 }
 /**
  * @test
  * @expectedException InvalidArgumentException
  */
 public function setRequestPatternsOnlyAcceptsRequestPatterns()
 {
     $uriRequestPattern = new UriRequestPattern('http://mydomain.com/some/path/pattern');
     $this->token->setRequestPatterns(array($uriRequestPattern, 'no valid pattern'));
 }
 /**
  * @param string $authenticationProviderName
  */
 public function setAuthenticationProviderName($authenticationProviderName)
 {
     parent::setAuthenticationProviderName($authenticationProviderName);
     $this->tokenEndpoint = $this->endpointResolver->getTokenEndpointForProvider($this->authenticationProviderName);
 }