# Error with Google SSO after NextCloud 24

**URL:** <https://help.nextcloud.com/t/error-with-google-sso-after-nextcloud-24/139869>\
**Category:** ℹ️ Support\
**Tags:** update\_problems\
**Created:** [May 31, 2022, 3:08pm UTC](https://help.nextcloud.com/t/error-with-google-sso-after-nextcloud-24/139869 "2022-05-31T15:08:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paultoona](https://help.nextcloud.com/letter_avatar/paultoona/32/5_5575768a8748004e209b776fc1b2916d.png) [@paultoona](https://help.nextcloud.com/u/paultoona)\
**Post date:** [May 31, 2022, 3:08pm UTC](https://help.nextcloud.com/t/error-with-google-sso-after-nextcloud-24/139869/1 "2022-05-31T15:08:54Z")

</div>

I am using Social Login with Google SSO. It has been working great until I upgraded to NextCloud 24. Now, I get an error 400: redirect\_uri\_mismatch error from Google: I’ve been trying to upload a screenshot and it keeps failing, so I’ll just add the text from the error:

```auto
Authorization Error
Error 400: redirect_uri_mismatch

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

If you're the app developer, register the redirect URI in the Google Cloud Console.
Learn more
Request Details
The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.
If you’re the app developer, make sure that these request details comply with Google policies.
redirect_uri: https://nextcloud.<domain>.com/index.php/apps/sociallogin/oauth/google

```

I am on NextCloud 24.0.1 and Social Login 4.15.2, Ubuntu 22.04 and PHP 8.0.18. This was originally set up by following:  
[https://github.com/zorn-v/nextcloud-social-login/blob/master/docs/sso/google.md](https://github.com/zorn-v/nextcloud-social-login/blob/master/docs/sso/google.md)

Again, this has been working for years and am unsure what was broken while upgrading NextCloud

I should also note that I removed Social login and added the app again and completely set up my google properties and the oath credentials

---

<div class="post-metadata">

**Author:** ![paultoona](https://help.nextcloud.com/letter_avatar/paultoona/32/5_5575768a8748004e209b776fc1b2916d.png) [@paultoona](https://help.nextcloud.com/u/paultoona)\
**Post date:** [June 1, 2022, 10:40pm UTC](https://help.nextcloud.com/t/error-with-google-sso-after-nextcloud-24/139869/2 "2022-06-01T22:40:17Z")

</div>

I got it working. In case anyone comes along with the same problem, here is the resolution.

In the previous install, having your Authroized redirect URI in [https://console.cloud.google.com](https://console.cloud.google.com) set to:  
[https://example.com/apps/sociallogin/oauth/google](https://example.com/apps/sociallogin/oauth/google)  
it worked. Now, you have to ensure you add index.php in the redirect URI  
[https://example.com/index.php/apps/sociallogin/oauth/google](https://example.com/index.php/apps/sociallogin/oauth/google)

For me, this needed to be updated even though pretty urls are configured.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 2:19pm UTC](https://help.nextcloud.com/t/error-with-google-sso-after-nextcloud-24/139869/3 "2024-12-13T14:19:12Z")

</div>


