コード例 #1
0
 public function authenticate(TokenInterface $token)
 {
     if ($token->getRequestToken() === $token->getAuthToken()) {
         return $token;
     }
     throw new AuthenticationException('The Authentication failed.');
 }