ivanvermeyen/laravel-google-drive-demo

401 Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

Closed this issue · 1 comments

How can I solve this?

 "error": {
    "code": 401,
    "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
    "errors": [
      {
        "message": "Login Required.",
        "domain": "global",
        "reason": "required",
        "location": "Authorization",
        "locationType": "header"
      }
    ],
    "status": "UNAUTHENTICATED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "CREDENTIALS_MISSING",
        "domain": "googleapis.com",
        } 
    ]
  } 

I have used Generate access from https://developers.google.com/oauthplayground

But, This showing this error message, Can anyone solve this?

@ivanvermeyen Help me

image
The problem was there we should set this Access token location: access_token url paramater