How to transfer username and password using POSTMAN - Rest Client?

I am a new bee in using POSTMAN - Rest Client - Chrome API

I want to use Basic Auth , which is available in POSTMAN.

I am trying to log in to my Google account in the url - " https://www.gmail.com ".

I introduced Username & Password Username & Password in Basic Auth and I tried GET and POST .

I got a Status 200 OK , which loads me a home page but is not logged in.

I know that I need to change the URL, but I can’t find the right one to use?

It would be helpful if @ examples were provided for different Auth Provided types.

+8
postman
source share
2 answers

The specified link is out of date. I don't know if the Gmail Basic Auth API allowed at the time you asked the question, but right now it needs OAuth 2.0, as indicated in the opening lines here .

The correct URL is https://accounts.google.com/o/oauth2/auth and this link explains how to provide options.

+1
source share

If I remember correctly, Google stopped accessing http clients (like Postman) to their APIs through Basic Auth one year ago or more. Google now allows access to its APIs using OAuth 2.0.

To access the Google APIs, you need to configure the OAuth application, here When you create this OAuth application, Google will generate the ClientId and ClientSecret.

With these clientId and clientSecret, you need to create access and update tokens, and ultimately you will use these tokens to access the Google APIs. Learn more about Google OAuth 2.0 and you’ll get more information about API access.

0
source share

All Articles