<div class="gmail_quote">On Fri, Jan 27, 2012 at 2:02 PM, Cantor, Scott <span dir="ltr">&lt;<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 1/27/12 3:54 PM, &quot;David Langenberg&quot; &lt;<a href="mailto:davel@uchicago.edu">davel@uchicago.edu</a>&gt; wrote:<br>
<br>
&gt;I&#39;ve noticed recently that an increasing number of SPs around my campus<br>
&gt;are requiring forceAuthn in an attempt to take back control of the<br>
&gt;user-auth/logout workflow.  The typical argument they make is &quot;think of<br>
&gt;the kiosk users&quot;.  Yeah Yeah, we&#39;ve all had these same arguments with<br>
&gt;vendors &amp; SP admins at our own institutions.   However, being an IdP<br>
&gt;admin and java developer who hates typing his password more than once per<br>
&gt;day, I&#39;d like to write some kind of extension or plugin which would<br>
&gt;instruct the IdP to ignore any forceAuthn requests for a particular list<br>
&gt;of users and just forge the response to make the SP think it got what it<br>
&gt;asked for.<br>
<br>
</div>Actually you might produce an instructive result by just telling the truth<br>
and see if they notice. The SP generates forceAuthn easily, but verifying<br>
the result is not automatic because it doesn&#39;t rely on signed requests.<br>
You have to enforce a delta to allow since the authentication time, and my<br>
guess is they aren&#39;t.<br>
<br>
That aside, it seems like the best way to approach it is with a checkbox<br>
on the login page in a custom login handler to create long-lived session<br>
or not at the IdP. That accomodates kiosks without playing tricks.<br></blockquote><div><br></div><div>Yeah, the checkbox with cookie was one of my thoughts for generating the bypass-forceAuthn flag.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
&gt;Before i proceed to just blindly hack this into the IdP, I was wondering<br>
&gt;if someone would give me a pointer of the best way to add this new<br>
&gt;feature in a pluggable &amp; maintainable way so I wouldn&#39;t need to keep a<br>
&gt;set of diffs around.<br>
<br>
</div>You need a custom login handler to do anything with the IdP that isn&#39;t<br>
trivial and has good error behavior for users. I can&#39;t imagine any better<br>
way to do what you&#39;re asking. There are no hooks into the forceAuthn flow<br>
other than the login handler. If you tell the IdP your handler supports<br>
forceAuthn, then that becomes a metter for the login handler to deal with.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Excellent, thanks Scott.</div><div><br>Dave</div><div><br></div></div>-- <br>David Langenberg<div>Identity Management</div><div>
The University of Chicago</div><br>