@model Projects.Models.ManageLoginsViewModel @using Microsoft.Owin.Security @{ ViewBag.Title = "Manage your external logins"; }

@ViewBag.Title.

@ViewBag.StatusMessage

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

There are no external authentication services configured. See this article for details on setting up this ASP.NET application to support logging in via external services.

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

Registered Logins

@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) { }

} } } }