-
Notifications
You must be signed in to change notification settings - Fork 13
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
OAuth authentication, e.g. for Google Mail #13
Comments
This would need to be implemented in https://github.com/txthinking/Mailer which I use in this plugin. Mailer tries to be a lightweight SMTP implementation without much dependencies. Adding oAuth might add unwanted dependencies and thus might be rejected unless the implementation can be kept simple (eg. not adding a huge third party oauth library). In any case I recommend opening a feature request at Mailer. |
Hello, the linked page to Google's tools is just a demonstration, the OAuth code has circa 20 lines of PHP code. Do you forward it or should I create a new issue on their repository? Thanks |
that example is for imap not SMTP. I am not saying it isn't possible to keep this simple, I am just saying it should. please open the upstream ticket yourself. |
Sorry, the PHP example is just for IMAP, the Python example was shown in the docs, which tests SMTP... OK, thanks. |
Hello, OAuth is now implemented in txthinking/Mailer. |
Btw, Google disabled password based auth for SMTP. |
Google will retire "less secure apps" by September 30. Is there news on how to use GMail with DokuWiki after that? |
Hello,
I have a DokuWiki hostet on a free webspace in the UK and I have a Google account for emails. This secondary Google account is linked to my primary account, from which Google knows, that my phone and all my browser sessions are located in Germany. When I try to send an email via DokuWiki, Google detects a possible dangerous login and alerts my (in the browser, phone, ...). The login and send attempt from the UK is blocked and DokuWiki outputs an error if debugging is enabled.
Google supports OAuth for emails, so I could generate an authentication token for DokuWiki (additionally to the login token to reuse Google logins). Is it possible to extend this plugin to support OAuth in addition to plain authentication over TLS/SSL?
Edit:
Links for futher reading on OAuth and Google:
AUTH XOAUTH2 <token>
to authenticate against Google: gmail-oauth2-toolsKind regards
Patrick Lehmann
The text was updated successfully, but these errors were encountered: