lundi 30 octobre 2017

Laravle Passport authentication issue on AWS server

I'm using Laravel 5.5 with passport's for api services. Its working fine after adding the "client credentials" route middleware in local.

'client_credentials' => \Laravel\Passport\Http\Middleware\CheckClientCredentials::class

Local Setup :

URL: http://localhost/server/public/index.php/api/v1/user/1

I got response as,

{
"status": 200,
"response_time": 0.050323009490967,
"body": {
    "user": "admin",
    "email": "admin@domain.com"
},
"message": "User found"

}

AWS Setup :

But, when i move to AWS server it won't authenticated.

URI: http://ift.tt/2hmT6V2

I got error as,

{
 "message": "Unauthenticated."
}

Both installations are same, and i can get access-token and reset-token by its endpoints.

But POST/GET/PUT/DELETE API calls are now allowed in AWS server.

Why it's not supporting on AWS ?

Any other ways to solve this ?

[Note: "web" group's "POST/GET/PUT/DELETE" routes are working fine.]



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ieku7j
via IFTTT

Aucun commentaire:

Enregistrer un commentaire