<?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 Explicit Authentication request is skipped if a user is logged in already (due to cookie I believe) in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/explicit-authentication-request-is-skipped-if-a-user-is-logged/m-p/325686#M12687</link>
    <description>&lt;P&gt;Hi,
We have the following setup:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Nuxeo running in an embedded iFrame, which is a part of our application&lt;/LI&gt;
&lt;LI&gt;To use out application, the user must log in to it&lt;/LI&gt;
&lt;LI&gt;To use Nuxeo, the user clicks on a dedicated button, which causes the iFrame to SSO to Nuxeo, using currently logged in user's credentials&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The problem is that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;user A logs in to our application&lt;/LI&gt;
&lt;LI&gt;user A clicks the iFrame button&lt;/LI&gt;
&lt;LI&gt;iFrame related code explicitly sends auth request with A's credentials to nuxeo/nxstartup.faces&lt;/LI&gt;
&lt;LI&gt;the auth is handed to our SSO plugin, and upon successful auth A gets into Nuxeo&lt;/LI&gt;
&lt;LI&gt;user A logs out of our application&lt;/LI&gt;
&lt;LI&gt;user B logs in to our application&lt;/LI&gt;
&lt;LI&gt;user B clicks the iFrame button&lt;/LI&gt;
&lt;LI&gt;iFrame related code explicitly sends auth request with B's credentials to nuxeo/nxstartup.faces&lt;/LI&gt;
&lt;LI&gt;---&amp;gt;&amp;gt;&amp;gt; Nuxeo consumes the auth request, and lets user B in, while displaying user 'A' as the one being logged in; looking into server.log confirms that the auth reuest for user B never reaches our SSO plugin&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Could anyone please advise on how to resolve the issue ?
p.s.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I have tried to delete the JSESSIONID cookie from within the main application code, but I cannot even see it (I think it is because our application and Nuxeo are on different domains.&lt;/LI&gt;
&lt;LI&gt;if I am not mistaken this has nothing to do with the use of an iFrame, i.e. I can reproduce by pasting the URLs the iFrame submits its requests to in a plain browser tab and get same results&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 28 Nov 2016 21:37:47 GMT</pubDate>
    <dc:creator>Rafi_Cohen</dc:creator>
    <dc:date>2016-11-28T21:37:47Z</dc:date>
    <item>
      <title>Explicit Authentication request is skipped if a user is logged in already (due to cookie I believe)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/explicit-authentication-request-is-skipped-if-a-user-is-logged/m-p/325686#M12687</link>
      <description>&lt;P&gt;Hi,
We have the following setup:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Nuxeo running in an embedded iFrame, which is a part of our application&lt;/LI&gt;
&lt;LI&gt;To use out application, the user must log in to it&lt;/LI&gt;
&lt;LI&gt;To use Nuxeo, the user clicks on a dedicated button, which causes the iFrame to SSO to Nuxeo, using currently logged in user's credentials&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The problem is that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;user A logs in to our application&lt;/LI&gt;
&lt;LI&gt;user A clicks the iFrame button&lt;/LI&gt;
&lt;LI&gt;iFrame related code explicitly sends auth request with A's credentials to nuxeo/nxstartup.faces&lt;/LI&gt;
&lt;LI&gt;the auth is handed to our SSO plugin, and upon successful auth A gets into Nuxeo&lt;/LI&gt;
&lt;LI&gt;user A logs out of our application&lt;/LI&gt;
&lt;LI&gt;user B logs in to our application&lt;/LI&gt;
&lt;LI&gt;user B clicks the iFrame button&lt;/LI&gt;
&lt;LI&gt;iFrame related code explicitly sends auth request with B's credentials to nuxeo/nxstartup.faces&lt;/LI&gt;
&lt;LI&gt;---&amp;gt;&amp;gt;&amp;gt; Nuxeo consumes the auth request, and lets user B in, while displaying user 'A' as the one being logged in; looking into server.log confirms that the auth reuest for user B never reaches our SSO plugin&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Could anyone please advise on how to resolve the issue ?
p.s.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I have tried to delete the JSESSIONID cookie from within the main application code, but I cannot even see it (I think it is because our application and Nuxeo are on different domains.&lt;/LI&gt;
&lt;LI&gt;if I am not mistaken this has nothing to do with the use of an iFrame, i.e. I can reproduce by pasting the URLs the iFrame submits its requests to in a plain browser tab and get same results&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Nov 2016 21:37:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/explicit-authentication-request-is-skipped-if-a-user-is-logged/m-p/325686#M12687</guid>
      <dc:creator>Rafi_Cohen</dc:creator>
      <dc:date>2016-11-28T21:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Explicit Authentication request is skipped if a user is logged in already (due to cookie I believe)</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/explicit-authentication-request-is-skipped-if-a-user-is-logged/m-p/325687#M12688</link>
      <description>&lt;P&gt;That looks like a single global logout problem and depends on your SSO. For instance, with CAS, "user A logs out of our application" should imply a CAS logout. Other forms of global logout might be more complex to handle.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 06:48:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/explicit-authentication-request-is-skipped-if-a-user-is-logged/m-p/325687#M12688</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-11-29T06:48:01Z</dc:date>
    </item>
  </channel>
</rss>

