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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Member

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