How to use TokenAuthInterceptor in Nuxeo Java Client ?
I am looking for code samples or examples of using TokenAuthInterceptor instead of BasicAuthInterceptor.
NuxeoClient nuxeoClient = new NuxeoClient.Builder() .url(url) .authentication("Administrator", "Administrator") .connect();
Documentation about authentication can be found there. Here below an example:
NuxeoClient nuxeoClient = new NuxeoClient.Builder() .url(url) .authentication(new TokenAuthInterceptor("YOUR_TOKEN")) .connect();
Note: We're currently working on improving this documentation.
Do you have more details in how to build the token (the format, the hash function) ?
How the token will be interpreted by the Nuxeo Client ?
The handshake phase could be done with client by giving basic authentication and using basic http apis such as get method.
I created JAVACLIENT-174 to create an API to request this token.