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

Is it possible to connect automatically at the email address without user logging in ? #42

Closed
pappleweb opened this issue Dec 20, 2018 · 3 comments

Comments

@pappleweb
Copy link

Hi,

I want that the connection to GMAIL at the email address (example : ticketingsupport@gmail.com) to be automatic without the user having to login ?

This email address is a common address and we have more users of the application who reply at a mail.

In fact, I want to create a ticketing application connected at GMAIL. Your program help me to receive any messages in the lavaral application.

Is it possible ?

Thanks you :)

@pappleweb pappleweb changed the title Is it possible to connect automatically at the email address ? Is it possible to connect automatically at the email address without user logging in ? Dec 20, 2018
@dacastro4
Copy link
Owner

dacastro4 commented Dec 20, 2018

@pappleweb I have something similar to the app that you're building. I have a single account where I receive a bunch of emails that I process every 15 mins, with that said, I never found a way with the google keys/JSON files but what I did was create a "Settings" page where I logged in with that email and never change it again because the token refreshes itself.

@jaythegeek
Copy link

FYI as a simple workaround for this, I have wrapped up the "collection" of messages into a Job, inside the handle() part of the job I am passing the userId in and then spoofing LaravelGmail by using auth()->loginUsingId($this->userId); this works just fine for now however ideally unhooking LaravelGmail from the Auth system in some way would be a better resolution

@novakben
Copy link

hey @jaythegeek does this still work for you? did you find any caveats? I'm considering implementing the same approach.

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

No branches or pull requests

4 participants