Ejemplo n.º 1
0
 public function checkRestrictedGrantType(IOAuth2Client $client, $grant_type)
 {
     if (!$client instanceof ClientInterface) {
         throw new \InvalidArgumentException('Client has to implement the ClientInterface');
     }
     return in_array($grant_type, $client->getAllowedGrantTypes(), true);
 }