How to use OpenID in ASP.net
问题 I would like to create a site that authenticates using Google's OpenID. How would I do this? Also, how would I use roles with custom tables? 回答1: Check out DotNetOpenAuth as a library you can use. You can hard-code https://www.google.com/accounts/o8/id as your OP Identifier to get users to log in using their Google accounts. You can check out the ASP.NET project template that will get you going, including with ASP.NET role management. 回答2: Here's a good place to start: http://code.google.com