﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Achieving Single-Sign-On</title><link>http://www.aspplayground.net/forum/</link><description /><copyright>(c) APG vNext Support Forum</copyright><ttl>30</ttl><item><title>Achieving Single-Sign-On (APGvNext (Sam))</title><description>You need to enable &lt;b&gt;cookie based forms authentication&lt;/b&gt; for your site, as the forum uses forms authentication cookie to recognize logged in users. Single Sign On depends on the presence of forms authentication cookie.&lt;br/&gt;&amp;nbsp;&lt;br/&gt;In addition, you need to make sure that &lt;b&gt;in both web.config files&lt;/b&gt;:&lt;br/&gt;&lt;ol&gt;&lt;li&gt;forms authentication cookie's &lt;i&gt;name, protection, path&lt;/i&gt; are the identical.&lt;li&gt;you have identical machine key (&lt;i&gt;validationKey, validation, decryptionKey&lt;/i&gt;)&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.aspplayground.net/machinekey.aspx" target="_blank" rel="nofollow" title="http://www.aspplayground.net/machinekey.aspx"&gt;Get your machine key&lt;/a&gt; if you don't have one yet.&lt;/ol&gt;&lt;/ol&gt;That's it. It shouldn't take more than 5 min to do the above.&lt;br/&gt;&lt;br&gt;&lt;b&gt;Alternatively&lt;/b&gt;, you can &lt;a href="http://www.aspplayground.net/forum/Custom-Forms-Authentication-cookie-for-Single-Sign-On-m404898.aspx" target="_blank" rel="nofollow" title="http://www.aspplayground.net/forum/Custom-Forms-Authentication-cookie-for-Single-Sign-On-m404898.aspx"&gt;read this article on creating a custom Forms Authentication Cookie for forum&lt;/a&gt; if your site configuration does not allow the above.&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;div class="roundCorner5" style="border: 1px solid #E5E597; background:#FFFFA0; padding: 12px 20px"&gt;&lt;br&gt;&lt;i class="icon-large icon-exclamation-sign rMargin10"&gt;&lt;/i&gt;Sharing Forms Authentication Cookie is tricky among app/sites on different ASP.NET frameworks (specifically between .NET 4.5 and any earlier version). A surefire way is to specify machine key compatibility mode in web.config:&lt;br/&gt;&lt;pre class="prettyprint"&gt;&amp;lt;machineKey compatibilityMode="Framework20SP1" /&amp;gt;&lt;/pre&gt;&lt;br/&gt;More info: &lt;a href="http://blogs.msdn.com/b/webdev/archive/2012/10/23/cryptographic-improvements-in-asp-net-4-5-pt-2.aspx" target="_blank" rel="nofollow" title="http://blogs.msdn.com/b/webdev/archive/2012/10/23/cryptographic-improvements-in-asp-net-4-5-pt-2.aspx"&gt;http://blogs.msdn.com/b/w...-asp-net-4-5-pt-2.aspx&lt;/a&gt;&lt;/div&gt;&lt;br/&gt;</description><link>http://www.aspplayground.net/forum/FindPost/398468</link><pubDate>Mon, 04 Aug 2008 17:43:13 GMT</pubDate></item></channel></rss>