Closed raymond10 closed 1 year ago
Hello,
Add <plugin>OAUTH2_AUTH</plugin>
to your specificAuthenticationChain name=JSON_CMIS
. You should probably do the same for the specificAuthenticationChain name=Automation
if you have defined one.
The JS client currently use the cmis
endpoint to retrieve the Nuxeo version.
Hello, Thanks for your reply. I did it and it works fine.
Hi @troger , @kevinleturc
I try nuxeo-js-client with LTS2021 and I ca not login through OAUTH2 token. I always get http 401 statut.
curl -H "Authorization:Bearer 012453xxgqzl45" -X POST https://localhost:8080/nuxeo/api/v1/automation/login
Response :
The thing is why after using
oauth2.fetchAccessTokenFromJWTToken
and connected (function connect()
) with have to connect to the cmis and the automation? Look at here : https://github.com/nuxeo/nuxeo-js-client/blob/f9a786c4ca4913da36be54e74432298e46cd4e7d/lib/nuxeo.js#L95When I try Basic AUTH, the are no problem, but the thing is, I'm connecting to nuxeo-js-client through OAUTH2 token.
On my server side I have my auth.xml set like :
Thanks for your help