<?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>Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx</link><description>Over the past couple of weeks I have come across lots of questions/discussions on while OAuth/OpenId is cool as a feature in the ASP.NET templates in Visual Studio 2012, but how do I easily integrate this into my application outside of the templates.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10373156</link><pubDate>Thu, 29 Nov 2012 17:58:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10373156</guid><dc:creator>Daz Wilkin 2</dc:creator><description>&lt;p&gt;Pranav you say &amp;quot;You can pass in the connectionstring name in App_Start and the OAUth layer will use that connectionstring&amp;quot; but can you provide more specific instructions on how to do this? I&amp;#39;m unable to find any documentation for it. Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10373156" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10366915</link><pubDate>Thu, 08 Nov 2012 14:27:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10366915</guid><dc:creator>Mario Saccoia - MSP</dc:creator><description>&lt;p&gt;Thanks for the blog post. Very useful.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10366915" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10359661</link><pubDate>Mon, 15 Oct 2012 13:14:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10359661</guid><dc:creator>pranav rastogi</dc:creator><description>&lt;p&gt;@Hasan, yes you can. You can pass in the connectionstring name in App_Start and the OAUth layer will use that connectionstring&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10359661" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10359599</link><pubDate>Mon, 15 Oct 2012 07:43:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10359599</guid><dc:creator>Hasan Nizamani</dc:creator><description>&lt;p&gt;Can I add this new membership schema into an already created database? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10359599" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10353262</link><pubDate>Wed, 26 Sep 2012 02:58:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10353262</guid><dc:creator>pranav rastogi</dc:creator><description>&lt;p&gt;@JB I am glad you found this post useful. &amp;nbsp;You can use your CustomMembership to use this. Eventually Microsoft.AspNet.Membership.OpenAuth uses the membership APIs for login&lt;/p&gt;
&lt;p&gt;Question1)&lt;/p&gt;
&lt;p&gt;To see the structure of these tables, you can just run this app and inspect the schema or you can open the Microsoft.AspNet.Membership.OpenAuth.data dll in reflect. Oauth tables are EF POCO classes and have the schema defined there&lt;/p&gt;
&lt;p&gt;Membership.OpenAuth.data should work with any custom implementation as long as you implement a membership provider. you can just use the custom membership provider in your config along with this package&lt;/p&gt;
&lt;p&gt;Question2)&lt;/p&gt;
&lt;p&gt;Since Membership.OpenAuth implements the membership APIs most probably your assessment is correct. Again I would recommend opening up the dll in reflector&lt;/p&gt;
&lt;p&gt;I would also look at the CreateUser() call to see if the user is created correctly.&lt;/p&gt;
&lt;p&gt;Question3)&lt;/p&gt;
&lt;p&gt;This works for both v4.0 and v4.5 so it does not matter&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10353262" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10353128</link><pubDate>Tue, 25 Sep 2012 18:04:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10353128</guid><dc:creator>JB</dc:creator><description>&lt;p&gt;Pranav, first, THANK YOU for posting this. I have been struggling with several different approaches to FaceBook authentication and yours looks the best by far. Second, some questions. I&amp;#39;m using a custom membership provider and am trying to integrate your example into it.&lt;/p&gt;
&lt;p&gt;Question 1: what are the structures of the additional SQL tables I need to create (UsersOpenAuth, etc) and where can I find some documentation on how to incorporate these tables into my custom membershipprovider?&lt;/p&gt;
&lt;p&gt;Question 2: (related): My code gets stuck on this line in the ExternalLandingPage.aspx:&lt;/p&gt;
&lt;p&gt;if (OpenAuth.Login(authResult.Provider, authResult.ProviderUserId, createPersistentCookie: false))&lt;/p&gt;
&lt;p&gt;I believe it&amp;#39;s because OpenAuth.Login is trying to execute defaultmembershipprovider methods that I do not have in my custom provider. Does that sound right? I have been unable to find a developer&amp;#39;s reference for Microsoft.AspNet.Membership.OpenAuth -- do you have any suggestions?&lt;/p&gt;
&lt;p&gt;Question 3: I&amp;#39;m writing this in ASP.NET WebForms (not MVC) 4.0. Should I be using 4.5 for any reason, or does it not matter?&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;JB&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10353128" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10352514</link><pubDate>Mon, 24 Sep 2012 01:44:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10352514</guid><dc:creator>pranav rastogi</dc:creator><description>&lt;p&gt;You will have to request more parameters as indicated here &lt;a rel="nofollow" target="_new" href="https://developers.google.com/accounts/docs/OpenID#Parameters"&gt;developers.google.com/.../OpenID&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Following post shows how you can override the built in google/facebbok etc &amp;nbsp;providers and write your own to request more information &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/webdev/archive/2012/08/22/extra-information-from-oauth-openid-provider.aspx"&gt;blogs.msdn.com/.../extra-information-from-oauth-openid-provider.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10352514" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10352490</link><pubDate>Sun, 23 Sep 2012 21:43:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10352490</guid><dc:creator>Ana</dc:creator><description>&lt;p&gt;Hi, I would like to access a users Google Drive files from within my .NET application. Is this made possible once the user logs in with their Google account? &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10352490" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10350726</link><pubDate>Wed, 19 Sep 2012 07:46:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10350726</guid><dc:creator>pranav rastogi</dc:creator><description>&lt;p&gt;@Jay, can you please elaborate more on what you are looking for?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10350726" width="1" height="1"&gt;</description></item><item><title>re: Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers</title><link>http://blogs.msdn.com/b/webdev/archive/2012/09/12/integrate-openauth-openid-with-your-existing-asp-net-application-using-universal-providers.aspx#10348637</link><pubDate>Wed, 12 Sep 2012 12:05:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10348637</guid><dc:creator>Jay Glynn</dc:creator><description>&lt;p&gt;What if I want to be the auth service, not google or twitter etc. That&amp;#39;s the sample I would love to see but haven&amp;#39;t as of yet.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10348637" width="1" height="1"&gt;</description></item></channel></rss>