for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Stevenmaguire\OAuth2\Client\Tool;
use League\OAuth2\Client\Token\AccessToken;
use Stevenmaguire\OAuth2\Client\Provider\Exception\ProviderConfigurationException;
trait ClientCredentialsOnlyTrait
{
/**
* Get authorization url to begin OAuth flow
*
* @return string
*/
public function getBaseAuthorizationUrl()
throw ProviderConfigurationException::clientCredentialsOnly();
}
* Get the default scopes used by this provider.
* This should not be a complete list of all scopes, but the minimum
* required for the provider user interface!
* @return array
* @codeCoverageIgnore
protected function getDefaultScopes()
return [];
* Get provider url to fetch user details
* @param AccessToken $token
public function getResourceOwnerDetailsUrl(AccessToken $token)
$token
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
* Generate a user object from a successful user details request.
* @param object $response
* @return YelpResourceOwner
protected function createResourceOwner(array $response, AccessToken $token)
$response
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.