Thanks Alex.

Since I posted this I had headed down a similar path except
that I overrode the AnonymousAuthenticator class and then
added code to check for the conditions of interest..
including limiting anon access to nxfile requests with

...
if (!uriRoot.equals("/nuxeo/nxfile")) {
    return null;
}
        
if (!initialized) {
    try {
        anonymousLogin = 
Framework.getService(UserManager.class).getAnonymousUserId()
;
            } catch (Exception e) {
                e.printStackTrace();
            }
            initialized = true;
} 
...

But your solution is cleaner.

Cheers,
Bruce.
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to