diff --git a/samples/IdentitySample.Mvc/Views/Account/Login.cshtml b/samples/IdentitySample.Mvc/Views/Account/Login.cshtml
index 3e7989f785..d4b484ecde 100644
--- a/samples/IdentitySample.Mvc/Views/Account/Login.cshtml
+++ b/samples/IdentitySample.Mvc/Views/Account/Login.cshtml
@@ -74,7 +74,7 @@
@foreach (AuthenticationDescription p in ViewBag.LoginProviders) {
-
+
}
diff --git a/samples/IdentitySample.Mvc/Views/Manage/ManageLogins.cshtml b/samples/IdentitySample.Mvc/Views/Manage/ManageLogins.cshtml
index afe4e48dfb..e08468a645 100644
--- a/samples/IdentitySample.Mvc/Views/Manage/ManageLogins.cshtml
+++ b/samples/IdentitySample.Mvc/Views/Manage/ManageLogins.cshtml
@@ -52,7 +52,7 @@
@foreach (AuthenticationDescription p in Model.OtherLogins)
{
-
+
}
diff --git a/src/Microsoft.AspNet.Identity/SignInManager.cs b/src/Microsoft.AspNet.Identity/SignInManager.cs
index addbea4195..a43364b662 100644
--- a/src/Microsoft.AspNet.Identity/SignInManager.cs
+++ b/src/Microsoft.AspNet.Identity/SignInManager.cs
@@ -386,7 +386,7 @@ namespace Microsoft.AspNet.Identity
/// A collection of s for the known external login providers.
public virtual IEnumerable GetExternalAuthenticationSchemes()
{
- return Context.Authentication.GetAuthenticationSchemes().Where(d => !string.IsNullOrEmpty(d.Caption));
+ return Context.Authentication.GetAuthenticationSchemes().Where(d => !string.IsNullOrEmpty(d.DisplayName));
}
///
@@ -424,7 +424,7 @@ namespace Microsoft.AspNet.Identity
return null;
}
// REVIEW: fix this wrap
- return new ExternalLoginInfo(auth.Principal, provider, providerKey, new AuthenticationDescription(auth.Description).Caption);
+ return new ExternalLoginInfo(auth.Principal, provider, providerKey, new AuthenticationDescription(auth.Description).DisplayName);
}
///
@foreach (AuthenticationDescription p in ViewBag.LoginProviders) { - + }