<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx</link><description>Recently a Customer asked me if an application using RIA Services could use WIF. I’m fairly new to RIA Services so I didn’t know the answer right away, however I suspected the integration should not be too hard, so I spend a couple of days spiking a solution</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#10072725</link><pubDate>Thu, 07 Oct 2010 13:14:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10072725</guid><dc:creator>Carl</dc:creator><description>&lt;p&gt;Eugenio, can Silverlight be active ou passive?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10072725" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9961127</link><pubDate>Wed, 10 Feb 2010 11:31:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9961127</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;The example worked for me Thanks, but i would like to logoff and re-login to my app then How do i redirect to the STS provider when i &lt;/p&gt;
&lt;p&gt;click the login link from Silverlight app, &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9961127" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9938874</link><pubDate>Fri, 18 Dec 2009 18:47:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9938874</guid><dc:creator>Eugenio Pace - MSFT</dc:creator><description>&lt;p&gt;No, RIA Services uses HttpContext.Current.User. It doesn't do anything special with it.&lt;/p&gt;
&lt;p&gt;Who is hosting the web service?si the same app that hosts the web site?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9938874" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9938813</link><pubDate>Fri, 18 Dec 2009 17:01:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9938813</guid><dc:creator>Terence Lewis</dc:creator><description>&lt;p&gt;You say above: 'If you break into the application (server side) and inspect the User object from the HttpContext you’ll notice there’s a “ClaimsIdentity” and you have access of course to the claims collection, etc. That is part of the “magic” performed by WIF modules'. However, when I run a similar scenario to the above, but without Ria Services (Raw Silverlight 3 with a passive STS), when I check Thread.Principle.Identity it says IsAuthenticated=false and none of my claims are in the Claims collection.&lt;/p&gt;
&lt;p&gt;I've traced the whole process through fiddler and I can see that the STS does issue the claims (I turned all the encryption off to verify), and these claims are passed to the web-server and stored in a cookie, which my WCF request is then passing back to the server. However, when I get into the WCF operation, although the type of Thread.Principal.Identity is IClaimsIdentity, nothing is filled into this object. Is RIA services maybe doing something special to fill these values in that I'm missing?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9938813" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9932722</link><pubDate>Fri, 04 Dec 2009 19:26:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9932722</guid><dc:creator>Eugenio Pace - MSFT</dc:creator><description>&lt;p&gt;Thanks!!&lt;/p&gt;
&lt;p&gt;There's not much code besides what I shared in the post. Most of it is genrated code (the STS).&lt;/p&gt;
&lt;p&gt;The only added code is the roles provider with this single method:&lt;/p&gt;
&lt;p&gt;public override string[] GetRolesForUser(string username) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var id = HttpContext.Current.User.Identity as IClaimsIdentity; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;return (from c in id.Claims &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where c.ClaimType == ClaimTypes.Role &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select c.Value).ToArray(); &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9932722" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9932589</link><pubDate>Fri, 04 Dec 2009 16:28:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9932589</guid><dc:creator>Ruslan Urban</dc:creator><description>&lt;p&gt;Good article, Eugenio.&lt;/p&gt;
&lt;p&gt;Would you be able to publish solution code, please?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9932589" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9914371</link><pubDate>Wed, 28 Oct 2009 21:59:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9914371</guid><dc:creator>Eugenio</dc:creator><description>&lt;p&gt;Run FedUtil.exe from the command line. I found a similar issue when i ran it from VS (no changes).&lt;/p&gt;
&lt;p&gt;re: registering new users. &lt;/p&gt;
&lt;p&gt;My little PoC was not complete of course. You wouldn't probably &amp;quot;register&amp;quot; users from your app any more. When you trust an identity provider, you delegate all those responsibilities to it. Your app doesn't care about users any more. It does care for other purposes (for example for storing customization options). But the lifecycle of users (create, delete, update, forget password, etc) are now the issuer responsibility (whoever that is).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9914371" width="1" height="1"&gt;</description></item><item><title>re: RIA Services and Windows Identity Foundation – Claims enabling a RIA application</title><link>http://blogs.msdn.com/b/eugeniop/archive/2009/10/09/ria-services-and-windows-identity-foundation-claims-enabling-a-ria-application.aspx#9914363</link><pubDate>Wed, 28 Oct 2009 21:49:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9914363</guid><dc:creator>Reggie Chen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I downloaded HRApp, and ran &amp;quot;Federation Utility Tool&amp;quot; from VS 2008's tool meuu, my web.config did not change. I tried to manually copying down the parts you showed to my web.config, it is not working either. The pasted image looks a bit blurry to me, do you mind publish the whole project or web.config?&lt;/p&gt;
&lt;p&gt;I have not yet gone through the guide examples in detail, but what would happen if I register new user from HRApp? Don't you need to implement some service class code at the provider end?&lt;/p&gt;
&lt;p&gt;I am trying to build a claim-awared PRISM application. My idea is instead of redirecting to STS's login HTML page, the prism app would load an xap to do validation/registration against a membership store at the STS site on demand. Is it doable? My understanding is in the passive federation model, the web server redirects you to sign in page, and get back the control to the website. In my case, the redirection will be triggered by a PRISM shell or a navigation application upon clicking login button to run an xap file on demand, and it will need to return to the silverlight app with its state intact. &amp;nbsp;Can it be done?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Reggie&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9914363" width="1" height="1"&gt;</description></item></channel></rss>