How to Pass Username and Password using POSTMAN – Rest Client

postman

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

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

I am trying to login into my Google account at url – "https://www.gmail.com".

I provided my Username & Password in the Basic Auth and I had tried GET and POST.

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

I know that i need to change the url, but i am not able to find the correct one which to use?

It would be helpful if @examples are provided for the Different Types of Auth Provided as well.

Best Answer

The link you have provided is deprecated. I don't know if the Gmail API allowed Basic Auth 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 supply the parameters.

Related Topic