DotNetOpenAuth “Sign Out” Button

筅森魡賤 提交于 2019-12-13 06:44:34

问题


Is there a way to render a "Sign Out" button using DotNetOpenAuth.

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.

Thanks!

Zen


回答1:


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.



来源:https://stackoverflow.com/questions/3151211/dotnetopenauth-sign-out-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!