I want my Domino Servlet to get an authenticated user session

后端 未结 5 1259
情歌与酒
情歌与酒 2021-01-15 02:43

It seems a like a pretty fundamental question, in a running Servlet hosted on Domino I want to access Domino resources that I have wisely protected using the the very fine s

5条回答
  •  失恋的感觉
    2021-01-15 03:28

    There have been lots of good answers to the original question. Thanks very much.

    The solution I propose to use is to port the code I have to OSGi plugins. It appears that java code/Servlets within the NSF context are subject to security controls that are relaxed when the same code runs within the OSGi context. The code:

    try {
    NotesThread.sinitThread();
    Session s = NotesFactory.createSession("","","");
    .....
    session = null;
    } catch (Exception e) {
    } finally {
    NotesThread.stermThread();
    }
    

    Runs fine in the OSGI context, but within in an NSF produc

提交回复
热议问题