Unauthenticated message when creating item through JsonAPI
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 1
- Joined: 23 Dec 2021, 09:18
Unauthenticated message when creating item through JsonAPI
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
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
Re: Unauthenticated message when creating item through JsonAPI
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, give us a star
If you like Aimeos, give us a star