yii2-eauth
yii2-eauth copied to clipboard
Authorization with Google is not working
It doesn't work on the demo as well.
- Try to Signin with google
- Logout
- Sign in again with google http://nodge.ru/yii-eauth/demo2/login
I solve this poblem: In /vendor/nodge/yii2-eauth/src/oauth2 in function getCallbackUrl need replace foreach (['code', 'state', 'redirect_uri'] as $param) {
to
foreach (['code', 'state', 'redirect_uri', 'scope'] as $param) {
@web-rider works like a charm. Thank you
@web-rider works,thanks
Yes, it works. Thanks a lot!
Need to add a fix to the main code, to be able to update through the composer. @Nodge
There's already a pull-request for this. I don't think this repo is maintained anymore. Also, you may want to follow this pull request and move that specifically to the Google OAuth Class so it has no detrimental impacts to any other services
Pull Request https://github.com/Nodge/yii2-eauth/pull/120
There is an other one to unset 'hd' after that pull request #120
It must be like this way
foreach (['code', 'state', 'redirect_uri', 'scope', 'authuser', 'prompt', 'session_state', 'hd'] as $param) {
if (isset($route[$param])) {
unset($route[$param]);
}
}