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

Google OAuth not possible with nextcloud #1663

Closed
ZambeiCloud opened this issue Jul 11, 2024 · 3 comments
Closed

Google OAuth not possible with nextcloud #1663

ZambeiCloud opened this issue Jul 11, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@ZambeiCloud
Copy link

ZambeiCloud commented Jul 11, 2024

Describe the bug
I can't login to my gmail account with the OAuth plugin. After the OAuth process, I'm redirected to the redirectUrl which then redirects to /custom_apps/snappymail/app/. The browser here displays "Not inside Nextcloud".

To Reproduce
Steps to reproduce the behavior:

  1. Install Google OAuth plugin
  2. Click on GMail button on the login screen
  3. Click through the OAuth process
  4. See error

Expected behavior
I can login with my gmail account through OAuth

Screenshots
image

Please complete the following information:

  • Browser: all current browsers
  • SnappyMail Version: 2.36.4
  • Mode: nextcloud
@the-djmaze
Copy link
Owner

Redirect url of SnappyMail should be https://...your.domain.../custom_apps/snappymail/?LoginGMail
Because you access it through https://...your.domain.../custom_apps/snappymail/

So check your settings.

@the-djmaze the-djmaze added the documentation Improvements or additions to documentation label Jul 14, 2024
@ZambeiCloud
Copy link
Author

Hi, thanks for your answer.
It doesn't seem to be an issue with the redirect url. I access snappy mail inside nextcloud through https://...your.domain.../apps/snappymail
For testing, i changed the redirect url in the googe api settings to https://...your.domain.../custom_apps/snappymail/?LoginGMail and got the redirect_uri_mismatch error from google.
image

With https://...your.domain.../apps/snappymail after the OAUTH process it's coming back to the correct URL but is immediately redirected to /custom_apps/snappy_mail/app
image

Thank you for your help!

@the-djmaze
Copy link
Owner

The issue is SnappyMail application.ini app_path.
So the change i made might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants