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

OAuth #180

Closed
gareth-ib opened this issue Dec 5, 2018 · 8 comments
Closed

OAuth #180

gareth-ib opened this issue Dec 5, 2018 · 8 comments

Comments

@gareth-ib
Copy link
Contributor

Is there a way or can you add to be able to use OAuth for IMAP instead of user/pass? Like what this Google demo has using old Zend libraries?

https://github.com/google/gmail-oauth2-tools/blob/master/php/oauth2.php

thanks

@tkrause
Copy link

tkrause commented Dec 17, 2019

Bump as Google has announced they're not supporting basic authentication anymore.

https://www.google.com/amp/s/www.androidcentral.com/google-blocking-access-less-secure-apps-protect-g-suite-users%3famp

@freescout-helpdesk
Copy link
Contributor

freescout-helpdesk commented Dec 24, 2019

laravel-imap uses PHP IMAP functions (https://www.php.net/manual/en/ref.imap.php), but it does looks like PHP IMAP functions can not be used to authenticate using XOAUTH: https://stackoverflow.com/questions/5089614/php-imap-and-xoauth

Some workaround is needed.

Here a temprorary OAuth token can be obtained: https://developers.google.com/oauthplayground/ (select "Gmail API v1" --> https://mail.google.com/ as the scope).

@freescout-helpdesk
Copy link
Contributor

Suggestion for Google: google/gmail-oauth2-tools#18

@freescout-helpdesk
Copy link
Contributor

@Webklex do you think it is doable to make this lib compatible with OAuth IMAP or it will just continue to use native PHP imap_ functions?

@CW92
Copy link

CW92 commented Apr 12, 2020

It looks like Microsoft Office 365 customers are also going to be subject to the same requirements - https://developer.microsoft.com/en-us/office/blogs/end-of-support-for-basic-authentication-access-to-exchange-online-apis-for-office-365-customers/

@Webklex
Copy link
Owner

Webklex commented Sep 22, 2020

@Webklex Webklex closed this as completed Sep 22, 2020
@sergiy-petrov
Copy link

Solved with v2.0.0: https://github.com/Webklex/laravel-imap#oauth

the link is broken

@freescout-helpdesk
Copy link
Contributor

PHP IMAP from Webklex: https://github.com/Webklex/php-imap

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

No branches or pull requests

6 participants