Note that there are some explanatory texts on larger screens.

plurals
  1. POAzure/web-farm ready SecurityTokenCache
    primarykey
    data
    text
    <p>Our site uses ADFS for auth. To reduce the cookie payload on every request we're turning IsSessionMode on (see <a href="http://blogs.msdn.com/b/vbertocci/archive/2010/05/26/your-fedauth-cookies-on-a-diet-issessionmode-true.aspx">Your fedauth cookies on a diet</a>).</p> <p>The last thing we need to do to get this working in our load balanced environment is to implement a farm ready SecurityTokenCache. The implementation seems pretty straightforward, I'm mainly interested in finding out if there are any gotchas we should consider when dealing with SecurityTokenCacheKey and the TryGetAllEntries and TryRemoveAllEntries methods (SecurityTokenCacheKey has a custom implementation of the Equals and GetHashCode methods).</p> <p>Does anyone have an example of this? We're planning on using AppFabric as the backing store but an example using any persistent store would be helpful- database table, Azure table-storage, etc.</p> <p>Here are some places I've searched:</p> <ul> <li>In <a href="http://www.microsoftpdc.com/2009/SVC17">Hervey Wilson's PDC09 session</a> he uses a DatabaseSecurityTokenCache. I haven't been able to find the sample code for his session. </li> <li>On page 192 of Vittorio Bertocci's excellent book, "Programming Windows Identity Foundation" he mentions uploading a sample implementation of an Azure ready SecurityTokenCache to the book's website. I haven't been able to find this sample either.</li> </ul> <p>Thanks!</p> <p>jd</p> <p><strong>3/16/2012 UPDATE</strong> <a href="http://blogs.msdn.com/b/vbertocci/archive/2012/03/15/windows-identity-foundation-in-the-net-framework-4-5-beta-tools-samples-claims-everywhere.aspx">Vittorio's blog</a> links to a sample using the new .net 4.5 stuff:</p> <p><a href="http://code.msdn.microsoft.com/vstudio/Claims-Aware-Web-Farm-088a7a4f">ClaimsAwareWebFarm</a> This sample is an answer to the feedback we got from many of you guys: you wanted a sample showing a farm ready session cache (as opposed to a tokenreplycache) so that you can use sessions by reference instead of exchanging big cookies; and you asked for an easier way of securing cookies in a farm. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload