As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
How can I create a custom Javascript login page, that will allow to connect the user to the Nuxeo platform ? I can't find any appropriate method in the API playground.
Do you mean that you have a javascript application and you would like it to handle an authentication toke, to avoid having to authenticate each requests with username / password ? what do you mean by "isolated mode deployed"?
I was refering to “isolated mode deployed” because of the deployment method proposed in the deployment section of the following page
From what I can see, there is no authentication endpoint in the REST API, but the calls use basic authentication according to https://doc.nuxeo.com/nxdoc/request-authentication/, so you would pass username and password in each request. I would also prefer to get a token instead of basic authentication for each API call, however, the latter should work as well for the moment.
You can create/test your login by making a dummy request to
GET <a href="http://192.168.99.100:32769/nuxeo/api/v1/user/Administrator" target="test_blank" rel="nofollow noopener noreferrer">http://192.168.99.100:32769/nuxeo/api/v1/user/Administrator</a>
for example, which will then either return a 401 or a 200 status, if you pass the correct username and password.
401
200
Looking at the API explorer in my Nuxeo instance, I see that there is a token endpoint, not sure yet how to use it: GET <a href="http://192.168.99.100:32769/nuxeo/api/v1/token" target="test_blank" rel="nofollow noopener noreferrer">http://192.168.99.100:32769/nuxeo/api/v1/token</a> since you need to pass device id, application, permissions to it. (The Nuxeo mobile app seems to be using this approach). But this might be an alternative way.
GET <a href="http://192.168.99.100:32769/nuxeo/api/v1/token" target="test_blank" rel="nofollow noopener noreferrer">http://192.168.99.100:32769/nuxeo/api/v1/token</a>
A token can be retrieved here