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

[ask] Auth Google #223

Open
atmanegara opened this issue Dec 10, 2023 · 1 comment
Open

[ask] Auth Google #223

atmanegara opened this issue Dec 10, 2023 · 1 comment

Comments

@atmanegara
Copy link

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
@amnah
Copy link
Owner

amnah commented Dec 10, 2023

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

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