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.
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.]
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire