@model Itlead.PeiXueVideo.WebApiNew.Models.ManageLoginsViewModel @using Microsoft.Owin.Security @{ ViewBag.Title = "管理你的外部登录名"; }

@ViewBag.Title。

@ViewBag.StatusMessage

@{ var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); if (loginProviders.Count() == 0) {

没有配置外部身份验证服务。有关设置此 ASP.NET 应用程序 以支持通过外部服务登录的详细信息,请参阅此文。

} else { if (Model.CurrentLogins.Count > 0) {

已注册的登录名

@foreach (var account in Model.CurrentLogins) { }
@account.LoginProvider @if (ViewBag.ShowRemoveButton) { using (Html.BeginForm("RemoveLogin", "Manage")) { @Html.AntiForgeryToken()
@Html.Hidden("loginProvider", account.LoginProvider) @Html.Hidden("providerKey", account.ProviderKey)
} } else { @:   }
} if (Model.OtherLogins.Count > 0) { using (Html.BeginForm("LinkLogin", "Manage")) { @Html.AntiForgeryToken()

@foreach (AuthenticationDescription p in Model.OtherLogins) { }

} } } }