Ejemplo n.º 1
0
 /**
  * @param Request     $request
  * @param Response    $response
  * @param AuthContext $context
  * @return Response
  */
 private function createToken(Request $request, Response $response, AuthContext $context)
 {
     $operator = $this->manager->getOperator($context->getOperator());
     return $operator->mountToken($request, $response, $operator->createToken($context->getUser()));
 }
Ejemplo n.º 2
0
 /**
  * @param Request     $request
  * @param Response    $response
  * @param AuthContext $context
  * @return Response
  */
 private function createToken(Request $request, Response $response, AuthContext $context)
 {
     $provider = $this->providers->getProvider($context->requestedProvider());
     return $provider->createToken($request, $response, $context->getUser());
 }