zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

error sso google #384

Closed Josuate closed 1 year ago

Josuate commented 1 year ago

hello i need help with problem

Access blocked: This app’s request is invalid You can’t sign in because this app sent an invalid request. You can try again later or contact the developer about this issue. Learn more about this error If you are a developer of this app, see error details. Error 400: redirect_uri_mismatch

I followed this procedure

https://github.com/zorn-v/nextcloud-social-login/blob/master/docs/sso/google.md

PTxmAwdROA commented 1 year ago

Hi - were you able to resolve this? I am having the same problem

zorn-v commented 1 year ago

redirect_uri_mismatch is EXACTLY what it says. Compare redirect_uri query param in browser address bar and in google oauth app settings.

PTxmAwdROA commented 1 year ago

Hi @zorn-v - I followed the instructions here:

https://github.com/zorn-v/nextcloud-social-login/blob/master/docs/sso/google.md

Specifically - what I placed in my Google Cloud admin I placed under "Authorized redirect URIs" this

  https://--MY-DOMAIN--/apps/sociallogin/oauth/google

Then I properly filled up the social login configuration with the client ID and secret given by Google.

Is there something wrong with what I did?

zorn-v commented 1 year ago

Your url may be like https://--MY-DOMAIN--/index.php/apps (depends on server config). Check url in "Login with google" button.

README.md

You can copy link of certain login button to get proper "redirect url" for OAuth app setting.