<div dir="ltr"><div><div>Yes the point of the approach is avoiding
stolen
cookie.<br>What do you mean by a lack of reliability ? You mean a bad reliability if the database shutdown or has too much load ? <br></div><br>>
I'd use a post-authentication interceptor flow, probably.
<br></div>Thanks for this valuable information.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-25 19:52 GMT+02:00 Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> I implemented a new login flow for the remember me feature i wanted to<br>
> create in shibboleth. But that is only the first part of what i want to achieve.<br>
> That is the first part is : reading the cookie and verifying its content. That use<br>
> a database to read some information and check the cookie has not been<br>
> stolen (same implementation as Spring Security Persistent token approach).<br>
> Well i just read the fact that using StorageService would be better than jdbc<br>
> to store this informations, but that is another story.<br>
<br>
</span>That's frankly nuts. You should use the DataSealer class built into the IdP and just write a secure cookie. Using a database for this has only one advantage, the ability to invalidate specific sessions, but that pales in comparison. It trades a rare issue that can be worked around for a lack of reliability for everybody on a daily basis.<br>
<span class=""><br>
> Now the second part : i want to create the cookie after the Password flow<br>
> succeed. I don't know exactly where i should insert this part. Can you point<br>
> me at the documentation i should read to do that ?<br>
<br>
</span>I'd use a post-authentication interceptor flow, probably.<br>
<div class="HOEnZb"><div class="h5"><br>
-- Scott<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/<wbr>confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.<wbr>net</a><br>
</div></div></blockquote></div><br></div>