Letting one user login with multiple google accounts on one webpage - gmail-api

My team is building a loadboard for dispatchers. These dispatchers are loaned to a truck company and use their gmail account to send emails to brokers so they can get a freight load for a trucker.
We want to give the ability to send emails directly from our loadboard without entering the gmail app.
We've already figured out how to send an email using the gmail api, but with this approach we can only get one email account and not the others as on a webpage apparently only one user can login using google.
The other approach is using smtp and generating a token but could be too complicated.
Is there a way how a user can login on a webpage using multiple google accounts so we can use them to send mails for the user?

Related

Firebase invite users via email for web app

Looking for the best way to invite users to a web app via email on firebase. It seems dynamic links only work for mobile. All I'm looking for is for a signed up user to be able to invite friends via email. The email contents would just contain a link to the website

How to provide user authentication option to users in a React app?

I am creating a web app that allows users to user their own social network services (Instagram, facebook, spotify, etc.) and display the information like photos, posts, playlists from the SNS.
I know we need each users to authenticate their SNS account first to make the API accessible.
I have no experience with authentication, so I want to get some TIPs of how to do this.
My idea is to provide buttons called Authenticate for each SNS. When the user clicks this, I want to open a window for the user to login to their SNS and when the login is successful, it will give a list of whatever information that is related to the SNS (photos, playlists, etc.).
I want to know what I need to know to do this. I know that we need access tokens to access the user's API. Is there a way to use the access token that the user earns by authenticating his account to access the API?
Any advice will be great. Thanks.
Try firebase authentication. A lot of work is involved in what you want to do, and they have done much of this work for us...

How do I sign into a gmail account pragmatically without 0Auth2?

So what I'm trying to do is sign into a Gmail account programmatically and not using 0Auth2 to sign into the user's account. What I'm trying to do is sign into the account I set and then display a link which is in that email's inbox. I've looked a lot and I can't seem to find a way to do this without showing anything or without using 0Auth2. I have installed Google's Gmail API into my Xcode project. Here are some of the places I have looked.
https://developers.google.com/gmail/api/quickstart/ios
https://developers.google.com/gmail/api/v1/reference/users
Searching on stackoverflow questions
other places
I think there is no way to use this without Oauth, and it is stated in the Gmail API documentation that all requests to the Gmail API must be authorized by an authenticated user and Gmail uses the OAuth 2.0 protocol for authenticating a Google account and authorizing access to user data. For more information, check this thread.
If you are trying to create an application that will use special account only to login to gmail, it can't be done without oauth2, but you can take a look at oauth2 scenarios here google oauth2 scenarios
In your case, in my opinion, server-to-server scenario can be a solution

Is it possible to access other person Gmail inbox using Gmail API?

I am successfully able to read my inbox content using Gmail API with desktop application.
But when I am trying to read other person gmail inbox, I am getting Delegation denied exception?
So my question here, will Gmail Api allow the applications to access other persons inbox or only the person who credentials are being used in generating Client_secret file??
Yes, it is possible to access others Gmail inbox. To access Gmail mailboxes, use Gmail API. Gmail API gives you flexible, RESTful acess to the user's inbox with a natural interface to Threads, Messages and History.
All you need to use the Gmail API is the client library for your choice of language and an app that can authenticate as a Gmail user. All requests to the Gmail API must be authorized by an authenticated user. You should use server-side flow when your application needs to access Google APIs on behalf of the user.
Here's a documentation how to implement Server-Side Authorization: https://developers.google.com/gmail/api/auth/web-server
This may be due to regulatory restrictions, I'm not sure why but it turns out that Google has not yet built any back-end support options for tracing Gmail messages within the Google Workspace administrator console
If your organization needs access to another user's Gmail account or tracks Gmail messages, I Highly Recommend using the Gmail Reader, it's a verified Google Workspace plugin, with a very user-friendly interface and a quick safe installation process directly from your Google Workspace Marketplace administrator console.
see the EZ Gmail Reader at Google Workspace Marketplace

Accessing gmail account from a C# windows service application

I'm writing a windows service application which needs to monitor one or more GMAIL inboxes for incoming emails. It downloads new emails and parses and extact the information. I believe using POP/IMAP/SMTP client api is the best way to solve this problem. Am I correct in my assumption? OAUTH authorization doesn't fit in this kind of scenario because there no user sititng to enter there credentials.

Resources