How to handle custom nuxeo Authentication with a JS frontend ?

Hello,

I want to handle CAS authentication against nuxeo with a JS frontend (angular)

For that I want to intercept 401 responses sent from server as I can make CAS dialog happen from that point.

It seems i'm getting into this issue:

http://stackoverflow.com/questions/21710686/wrong-error-code-in-angular-js-resource-responce

I would not have thought about it but could it be that something has to be done on Nuxeo as the answer to the above post suggests ? (CORS contribution is active on my platform)

1 votes

0 answers

1100 views

ANSWER

To sum up the link, what happens is that angular is getting a 404 while firefox console and my apache server are both stating a 401 (as expected)
04/02/2014