如何使用OpenID的在ASP.net [英] How to use OpenID in ASP.net

查看:76
本文介绍了如何使用OpenID的在ASP.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建用于认证使用谷歌的OpenID的网站。我会怎么做呢?

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?

推荐答案

查看 DotNetOpenAuth 因为你可以使用一个图书馆。你可以硬code https://www.google.com/accounts/o8/id作为您的OP标识让用户登录使用他们的谷歌帐户。

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.

您可以检查出的ASP.NET项目模板,这将让你去,包括与ASP.NET角色管理。

You can check out the ASP.NET project template that will get you going, including with ASP.NET role management.

这篇关于如何使用OpenID的在ASP.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆