Unauthenticated message when creating item through JsonAPI

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!
AlMarwaWagdy
Posts: 1
Joined: 23 Dec 2021, 09:18

Unauthenticated message when creating item through JsonAPI

Post by AlMarwaWagdy » 23 Dec 2021, 09:42

Hello,

our AIMEOS version is 2021.10 and we run PHP 8.0.

I am trying to create a product via jsonadm api .

I log in using the api/login where return a token and add col in personal_access_tokens table.

Then I use that for the GET|POST in admin/default/jsonadm/product?_token=+Token.

but it return message Unauthenticated

Thanks for any help.

AlMarwa

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

Re: Unauthenticated message when creating item through JsonAPI

Post by aimeos » 24 Dec 2021, 07:56

You need to pass the cookie for the PHP session too e.g. for Laravel it's named "laravel_session" by default (if you didn't change the application name).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply