title: Laravel Passport authentication issue on AWS server
body: <p>I'm using Laravel 5.5 with passports for API services. Its working fine after adding the "client credentials" route middleware in local.</p>
  
  <pre><code>'client_credentials' =&gt; \Laravel\Passport\Http\Middleware\CheckClientCredentials::class
  </code></pre>
  
  <p>**Local Setup: **</p>
  
  <p>URL: <a href="http://localhost/server/public/index.php/api/v1/user/1" rel="nofollow noreferrer">http://localhost/server/public/index.php/api/v1/user/1</a></p>
  
  <p>I got response as,</p>
  
  <pre><code>{
  "status": 200,
  "response_time": 0.050323009490967,
  "body": {
      "user": "admin",
      "email": "admin@domain.com"
  },
  "message": "User found"
  </code></pre>
  
  <p>}</p>
  
  <p>**AWS Setup: **</p>
  
  <p>But, when I move to AWS server it won't authenticate.</p>
  
  <p>URI: <a href="http://api_server.com/server/public/index.php/api/v1/user/1" rel="nofollow noreferrer">http://api_server.com/server/public/index.php/api/v1/user/1</a></p>
  
  <p>I got error as,</p>
  
  <pre><code>{
   "message": "Unauthenticated."
  }
  </code></pre>
  
  <p>Both installations are same, and I can get access-token and reset-token by its endpoints.</p>
  
  <p>But POST/GET/PUT/DELETE API calls are now allowed on AWS server.</p>
  
  <p>Why it's not supporting on AWS?</p>
  
  <p>Any other ways to solve this?</p>
  
  <p>[Note: "web" group's "POST/GET/PUT/DELETE" routes are working fine.]</p>