1 @model Projects.Models.ManageLoginsViewModel
2 @using Microsoft.Owin.Security
4 ViewBag.Title = "Manage your external logins";
7 <h2>@ViewBag.Title.</h2>
9 <p class="text-success">@ViewBag.StatusMessage</p>
11 var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
12 if (loginProviders.Count() == 0) {
15 There are no external authentication services configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=313242">this article</a>
16 for details on setting up this ASP.NET application to support logging in via external services.
22 if (Model.CurrentLogins.Count > 0)
24 <h4>Registered Logins</h4>
27 @foreach (var account in Model.CurrentLogins)
30 <td>@account.LoginProvider</td>
32 @if (ViewBag.ShowRemoveButton)
34 using (Html.BeginForm("RemoveLogin", "Manage"))
36 @Html.AntiForgeryToken()
38 @Html.Hidden("loginProvider", account.LoginProvider)
39 @Html.Hidden("providerKey", account.ProviderKey)
40 <input type="submit" class="btn btn-default" value="Remove" title="Remove this @account.LoginProvider login from your account" />
54 if (Model.OtherLogins.Count > 0)
56 using (Html.BeginForm("LinkLogin", "Manage"))
58 @Html.AntiForgeryToken()
59 <div id="socialLoginList">
61 @foreach (AuthenticationDescription p in Model.OtherLogins)
63 <button type="submit" class="btn btn-default" id="@p.AuthenticationType" name="provider" value="@p.AuthenticationType" title="Log in using your @p.Caption account">@p.AuthenticationType</button>