Api Authentication

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
adityabanerjee
Posts: 44
Joined: 05 Oct 2019, 06:42

Api Authentication

Post by adityabanerjee » 13 Dec 2019, 06:32

Hi,

I have added a Laravel passport to my installation. Now I wanted to secure the API routes of aimeos. To do that I would be adding the auth:api middleware. So I wanted to know where shall I add this middleware to the aimeos routes?

Regards

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

Re: Api Authentication

Post by aimeos » 14 Dec 2019, 14:54

Simply add the middleware to the configuration:
https://github.com/aimeos/aimeos-larave ... op.php#L15
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply