mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #205] Help with oauth2 gmail - redirect URI? #169
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @szilardx on GitHub (Jun 18, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/205
Originally assigned to: @jasonmunro on GitHub.
I am trying to set up oauth2 autentication for one of my gmail accounts. I would like to try out the gmail contacts module.
I tried everything I could think of, now am a trying to do it from a freshly installed cypht instance.
I set a Google Gmail API Project - created the credentials. - although I am not sure what to put at the redirect URI field on the Google site - so I got confused what to put in the site_URI filed for the oauth2.ini
I tried it with my setup's address.
So far when I try to add a gmail account in cypht, nothing special happens - so I guess oauth2 is not working for me. Could you help me with this?
Thank you very much!
@jasonmunro commented on GitHub (Jun 18, 2017):
The redirect URI in your Google app should be the URL of your cypht install, which should also be the value in your oauth2.ini file for client_uri. In order to use oauth2 over IMAP for Gmail and contacts, you need to use the "add E-mail" dialog from the nux module set. This should prompt you about using oauth2, then redirect you to Google to approve the oauth2 access, then redirect you back to your site with the newly added account (which should include IMAP, SMTP, and contacts).
@szilardx commented on GitHub (Jun 18, 2017):
Thanks for the quick response.
The things I did:
@jasonmunro commented on GitHub (Jun 18, 2017):
Maybe the oauth2.ini file location is the problem - it should be in the app_data_dir as defined in your hm3.ini file. Is that set to /usr/local/share/cypht?
@szilardx commented on GitHub (Jun 18, 2017):
Thank you! I have gone through that setting option too, but was looking too hard for the mistake, so I missed it!
I used a bad directory. Thanks for the help, and this great application!