@{
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 {
using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) {
@Html.AntiForgeryToken()
@foreach (AuthenticationDescription p in loginProviders) {
}
@foreach (AuthenticationDescription p in loginProviders) { }