问题
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