Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Explore possibility of configuration driven Provider for to the letter OAuth2 spec. custom servers #179
Ideally support some workflow like:
$provider = new League\OAuth2\Client\Provider\Provider([ 'grantType' => 'zzzzzzz', // possibly not needed? 'tokenUrl' => 'ccccc', 'refreshUrl' => 'aaaaaa', 'clientId' => 'XXXXXXXX', 'clientSecret' => 'XXXXXXXX', 'redirectUri' => 'https://your-registered-redirect-uri/', 'scopes' => array('email', '...', '...'), ));
Yeah you wouldn't need to grant type that early on, that would be relevant later.
public $clientId = ''; public $clientSecret = ''; public $redirectUri = ''; public $state; public $name; public $uidKey = 'uid'; public $scopes = ; public $method = 'post'; public $scopeSeparator = ','; public $responseType = 'json'; public $headers = null;
These are the items that would need to be configurable to make a GenericProvider possible.