1

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.

jscs
  • 63,694
  • 13
  • 151
  • 195

2 Answers2

1

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.

Community
  • 1
  • 1
KENdi
  • 7,576
  • 2
  • 16
  • 31
0

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

D. Krauchanka
  • 264
  • 3
  • 15