@using Microsoft.Owin.Security

Use another service to log in.


@{ 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 { string action = Model.Action; string returnUrl = Model.ReturnUrl; using (Html.BeginForm(action, "Account", new { ReturnUrl = returnUrl })) { @Html.AntiForgeryToken()

@foreach (AuthenticationDescription p in loginProviders) { }

} } }