yii2-user icon indicating copy to clipboard operation
yii2-user copied to clipboard

[ask] Auth Google

Open atmanegara opened this issue 1 year ago • 1 comments

First, change settings, from Google Auth to Google

'class' => 'yii\authclient\clients\GoogleOAuth', to 'class' => 'yii\authclient\clients\Google',

second, errors Error 400: redirect_uri_mismatch When I try to log in with Google, I follow Google's instructions but it still doesn't work

  • It is possible that auth on social media has changed the auth settings

atmanegara avatar Dec 10 '23 14:12 atmanegara

hi sorry, but i haven't worked on this extension for many years now and havent kept up to date with yii2 in general

a quick google search suggests that you may need to set the redirect uri precisely - https://stackoverflow.com/questions/73799334/i-get-this-error-error-400-redirect-uri-mismatch-even-after-i-registered-the/73799803#73799803

also, my code was based on yii2-authclient so you could try asking them on their forums as well - https://forum.yiiframework.com/c/yii-2-0/5

amnah avatar Dec 10 '23 17:12 amnah