Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore possibility of configuration driven Provider for to the letter OAuth2 spec. custom servers #179

Closed
ralphschindler opened this issue Dec 3, 2014 · 1 comment
Milestone

Comments

@ralphschindler
Copy link

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', '...', '...'),
));
@philsturgeon
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants