I am using Lumen micro-framework for creating REST APIs. For token based authentication I was using a tymon/jwt-auth package. Followed all the steps mentioned in following blog. When I do a post request for token fetching, get the following error: 25810 segmentation fault (core dumped)
On debugging, it was found that In /vendor/tymon/jwt-auth/src/Providers/Auth/IlluminateAuthAdapter.php around line number 31
return $this->auth->once($credentials);
is creating problem.
After adding a debugging statement
print_r(get_class_methods(get_class($this->auth)));
The output was
Array
(
[0] => __construct
[1] => guard
[2] => createSessionDriver
[3] => createTokenDriver
[4] => getDefaultDriver
[5] => shouldUse
[6] => setDefaultDriver
[7] => viaRequest
[8] => extend
[9] => provider
[10] => __call
[11] => createUserProvider
)
So how come the object is accessing once method, when it is not in the scope.
Can you please suggest, where I am wrong.
Thanks.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1SLvSW6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire