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

@ralphschindler ralphschindler commented Dec 3, 2014

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

@philsturgeon philsturgeon commented Dec 3, 2014

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants