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

GenericProvider does nothing with "verify = false" option. #945

Open
danardf opened this issue Mar 17, 2022 · 2 comments
Open

GenericProvider does nothing with "verify = false" option. #945

danardf opened this issue Mar 17, 2022 · 2 comments

Comments

@danardf
Copy link

danardf commented Mar 17, 2022

Hi everyone.

With my code, as in your exemple.
The fact to use "verify" => false doesn't work
I've got an error
cURL error 60: Peer's certificate has an invalid signature

Your example shows verify = false. but no way. It doesn't care. It's like verify = true.

$provider = new \League\OAuth2\Client\Provider\GenericProvider([ 'clientId' => 'XXXXXX', // The client ID assigned to you by the provider 'clientSecret' => 'XXXXXX', // The client password assigned to you by the provider 'redirectUri' => 'https://my.example.com/your-redirect-url/', 'urlAuthorize' => 'https://service.example.com/authorize', 'urlAccessToken' => 'https://service.example.com/token', 'urlResourceOwnerDetails' => 'https://service.example.com/resource', 'proxy' => '192.168.0.1:8888', 'verify' => false ]);
Any idea?

Franck

@danardf
Copy link
Author

danardf commented Mar 17, 2022

Hmmm I think I found where the issue comes from.
Need to use a proxy.
Without proxy, that means verify is not set.

That will be interesting to set this option without proxy.
For any reason, we could use it without proxy.

@FernandoVelcic
Copy link

Hello I need the same option.

Thanks

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

2 participants