Laravel Passport Auth is not working

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Devanshu
Posts: 2
Joined: 18 Oct 2020, 13:15

Laravel Passport Auth is not working

Post by Devanshu » 18 Oct 2020, 14:03

Hi, I am new for Aimeos ...
I have installed Passport for Authentication ... and It is working for my custome apies in laravel
But when I am trying to fetch Customer Detail and passsing Authorization Header as 'Bearer XXXXXXX' (Access Token) . Not getting the details.

What am I doing wrong.
Screenshot from 2020-10-18 19-20-41.png
Screenshot from 2020-10-18 19-20-41.png (196.71 KiB) Viewed 993 times
Apart from that I changed the shop.php configuration file also
Screenshot from 2020-10-18 19-24-31.png
Screenshot from 2020-10-18 19-24-31.png (252 KiB) Viewed 993 times
Using : Laravel 7.x , Aimeos 2020.x, Ubuntu

Thanks in advance.


Thanks and regards,
Devanshu Srivastava

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Laravel Passport Auth is not working

Post by aimeos » 19 Oct 2020, 16:47

Hard to say from an outside perspective. If

Code: Select all

Auth::id()
returns the ID of the user record, Aimeos should return the customer data via the JSON REST API too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply