We are unable to get access token of google drive using grant type client credentials or grant type password in postman. Please help me with the solution.
{ "error": "unsupported_grant_type", "error_description": "Invalid grant_type: password" }
this is the response from google authorization api , its not supported only authporization code is supported
Steps:
https://console.developers.google.com/ Goto url and create an API. (by clicking credentials>create credentials)
https://console.developers.google.com/apis/api/drive.googleapis.com/overview Goto url, click credentials> create new 0auth0.2 ( select applicaiton type as Web application)
While creating 0auth0.2 scroll down and set Authorized redirect URIs as https://localhost
CLick the download as json and then save the auth
Open postman and set authorization as 0auth2.0 from authorization header:
Generate new token by filling the content as per the downloaded json ( open the json and fill postman as in json)
2.1m questions
2.1m answers
60 comments
57.0k users