Skip to main content

Posts

Showing posts from August, 2012

Free eBooks

Microsoft has been kind enough to release a number of free eBooks around their technology, and finally a number of them in a format besides PDF. If you want to read up one things like Azure, Windows Phone, SharePoint and Office here are some good starting points. Azure, SharePoint, WP, Windows 8, Office – set 1 Azure, SharePoint, WP, Windows, Office – set 2

Running WIF Relying parties in Windows Azure

I am coping this blog from another blog here . Copying it here just to make sure I can find it in the future. My Azure app had this issue and this fixed the problem.  When running in a multi server environment like windows azure it is required to make sure the cookies generated by WIF are encrypted with the same pair of keys so all servers can open them. Encrypt cookies using RSA In Windows Azure, the default cookie encryption mechanism (which uses DPAPI) is not appropriate because each instance has a different key. This would mean that a cookie created by one web role instance would not be readable by another web role instance. This could lead to service failures effectively causing denial of the service. To solve this problem you should use a cookie encryption mechanism that uses a key shared by all the web role instances. The following code written to global.asax shows how to replace the default SessionSecurityHandler object and configure it to use the RsaEncryptionCookieTransfo