Authentication in moqui

I use api-key and save it in local storage and send it with rest and authentication checked by api-key but now I want check the authentication in backend and using moqui . Is there any way to handle this issue ?

Moqui supports api_key and login_key headers, they are stored in the entity where they are associated with a specific user, and the framework takes care of the authentication. Take a look at the ec.user.getLoginKey() method to create a new key for a user.
Depending on your configuration, you might need to configure your proxy or ingress settings to pass these headers along, as some default configurations filter them out.

1 Like