Steve Rhoades
Steve Rhoades
Off the top of my head I think the correct call would look something like... ``` $token = $oidcClient->getAccessToken('password', [ 'username' => $ue, 'password' => $p, 'scopes' => 'openid email...
Ah, disregard my last response. Jumped to a conclusion too quickly. According to this: https://github.com/thephpleague/oauth2-client/blob/master/src/Provider/AbstractProvider.php#L305 You must provide all the scopes you wish to receive within an access token request...
Does the OAuth2 server receive the openid scope when only using provider options? Have you tried: ``` $provider = new \OpenIDConnectClient\OpenIDConnectProvider([ 'clientId' => 'myapp', 'clientSecret' => 'something', // Your server...
No problem. I'll see if I can find the time to investigate this issue further.
@lcobucci this is a good point as PHP 5.6 is not EOL until Jan 2019.
@fanglingsu Yes to the above. My time is the biggest limiting factor right now. PRs are much appreciated!
It's hard to believe this issue is 5 years old now. I apologize it hasn't been upgraded already. @Levivb your contribution will be greatly appreciated!
@croensch thank you for the contribution. Please let me know when this is out of WIP and i'll take a look.
I added support for OpenID Connect on top of this server here: https://github.com/steverhoades/oauth2-openid-connect-server. If there is any interest I would be happy to help adding this functionality to the library...
FYI - uv_last_error has been removed from libuv 1.0.