问题描述
有没有一种方法可以使用DotNetOpenAuth呈现注销按钮。
Is there a way to render a "Sign Out" button using DotNetOpenAuth.
基本上,我需要某种登录状态控件,该控件将显示OpenId登录表单,就像OpenIdLogin Control一样,如果用户未登录,它将显示在用户登录后,显示退出链接以及诸如欢迎回来的用户之类的消息。
Basically I need some sort of Log In status control, that would display the OpenId login form, just like OpenIdLogin Control does, if the user is not logged in and it would show a Sign Out link along with some sort of message like "Welcome back user" once the user logs on.
谢谢!
Zen
推荐答案
您可以使用标准的 LoginStatus
或 LoginView
的ASP.NET控件。 DotNetOpenAuth不会对已登录的用户添加任何特殊内容-通常,您仅对其使用FormsAuthentication。
You can use the standard LoginStatus
or LoginView
ASP.NET control for this. DotNetOpenAuth doesn't add anything special about a logged in user -- you typically just use FormsAuthentication with it.
这篇关于DotNetOpenAuth“注销”;纽扣的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!