cancel
Showing results for 
Search instead for 
Did you mean: 

How to use TokenAuthInterceptor in Nuxeo Java Client ?

Ghazi_HAKIM
Confirmed Champ
Confirmed Champ

Hello,

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();

Thank you.

3 REPLIES 3

Kevin_Leturc
Star Contributor
Star Contributor

Hello,

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.

Ghazi_HAKIM
Confirmed Champ
Confirmed Champ

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 ?

Thank you!

Nuxeo Java Client doesn't handle handshake phase. You first need to acquire a token by following this [documentation](https

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.