ivanvermeyen / laravel-google-drive-demo

Laravel & Google Drive Storage - Demo project with Laravel 5.4
403 stars 155 forks source link

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

Closed fxcjahid closed 1 year ago

fxcjahid commented 1 year ago

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

fxcjahid commented 1 year ago

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