GraphQL Log In and Connect
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
GraphQL Log In and Connect
There is a note in the documentation "You must be logged into the admin backend to use the GraphQL API!", but no mention of how to do this. What is the URL on a local host and how can I log in and connect?
Thanks for any reply.
php 8.1.19
laravel 2022
Linux Fedora
Thanks for any reply.
php 8.1.19
laravel 2022
Linux Fedora
Re: GraphQL Log In and Connect
There are different options possible and which one to use depends on what you want to do:
- Form-based login
- Lighthouse-PHP with own login mutation
- JSON Web Token
- Laravel Sanctum
By default, the GraphQL API is used in the admin backend and there, editors are already logged in using the Laravel login form. In the admin backend, the URL is available as data attribute in the HTML:
https://github.com/aimeos/ai-admin-jqad ... #L127-L128
The URL depends on your configuration but if unchanged, it's "/admin/{site}/graphql", i.e. for the "default site: "/admin/default/graphql":
https://github.com/aimeos/aimeos-larave ... op.php#L16
- Form-based login
- Lighthouse-PHP with own login mutation
- JSON Web Token
- Laravel Sanctum
By default, the GraphQL API is used in the admin backend and there, editors are already logged in using the Laravel login form. In the admin backend, the URL is available as data attribute in the HTML:
https://github.com/aimeos/ai-admin-jqad ... #L127-L128
The URL depends on your configuration but if unchanged, it's "/admin/{site}/graphql", i.e. for the "default site: "/admin/default/graphql":
https://github.com/aimeos/aimeos-larave ... op.php#L16
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
Re: GraphQL Log In and Connect
Thanks for your reply. I would like to connect from an external python application, mainly to access orders, and thought graphql or the json api would do that.
Re: GraphQL Log In and Connect
In that case, Laravel Sanctum with API keys might be the easiest way.
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