<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Authentication and Automation APIs in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324713#M11714</link>
    <description>&lt;P&gt;I am a bit confused about how authentication works with the Java automation APIs.
I would like to use a shared secret between the client and the server, and to use impersonation when a client request comes in to switch the the requesting user's security context. I also need to authenticate the user.
Roughly I am trying something along those lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// client init
session = client.getSession("Administrator", "Administrator"); // will replace with shared secret

// request comes in from user Bob
session.verifyCredentials("bob", bob's password) // how do I do this??
session.newRequest("Auth.LoginAs").set("name", "bob");
session.do_some_stuff()
session.newRequest("Auth.Logout");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have two issues:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How can I validate Bob's credentials (without starting a new session, which is too slow)?&lt;/LI&gt;
&lt;LI&gt;after Auth.LoginAs, I can still successfully use the session to readDocument for which Bob has been denied the READ permission - is LoginAs really impersonating the user?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2012 09:30:16 GMT</pubDate>
    <dc:creator>franck102_</dc:creator>
    <dc:date>2012-11-09T09:30:16Z</dc:date>
    <item>
      <title>Authentication and Automation APIs</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324713#M11714</link>
      <description>&lt;P&gt;I am a bit confused about how authentication works with the Java automation APIs.
I would like to use a shared secret between the client and the server, and to use impersonation when a client request comes in to switch the the requesting user's security context. I also need to authenticate the user.
Roughly I am trying something along those lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// client init
session = client.getSession("Administrator", "Administrator"); // will replace with shared secret

// request comes in from user Bob
session.verifyCredentials("bob", bob's password) // how do I do this??
session.newRequest("Auth.LoginAs").set("name", "bob");
session.do_some_stuff()
session.newRequest("Auth.Logout");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have two issues:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How can I validate Bob's credentials (without starting a new session, which is too slow)?&lt;/LI&gt;
&lt;LI&gt;after Auth.LoginAs, I can still successfully use the session to readDocument for which Bob has been denied the READ permission - is LoginAs really impersonating the user?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:30:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324713#M11714</guid>
      <dc:creator>franck102_</dc:creator>
      <dc:date>2012-11-09T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication and Automation APIs</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324714#M11715</link>
      <description>&lt;P&gt;Looking into the source code it seems that LoginAs would work only if I chain it with my "do_some_stuff" on the server side... however that doesn't work well for me, I would need to define automation chains for every operation I ever want to use.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2012 12:29:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324714#M11715</guid>
      <dc:creator>franck102_</dc:creator>
      <dc:date>2012-11-09T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication and Automation APIs</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324715#M11716</link>
      <description>&lt;P&gt;I finally realized that establishing a session is really fast (as opposed to creating a new automation client), so I don't actually have a need for impersonation.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2012 10:12:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-and-automation-apis/m-p/324715#M11716</guid>
      <dc:creator>franck102_</dc:creator>
      <dc:date>2012-11-12T10:12:21Z</dc:date>
    </item>
  </channel>
</rss>

