auth() protected method

Perform authentication for the given client.
protected auth ( mixed $client ) : Response
$client mixed auth client instance.
return yii\web\Response response instance.
Beispiel #1
0
 /**
  * @inheritdoc
  * 
  * @param StandaloneAuthClient $client
  * @return response
  */
 public function auth($client)
 {
     if ($client instanceof StandaloneAuthClient) {
         return $client->authAction($this);
     }
     return parent::auth($client);
 }