From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- .../Account/_ExternalLoginsListPartial.cshtml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml (limited to 'Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml') diff --git a/Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml b/Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml new file mode 100644 index 0000000..8b85588 --- /dev/null +++ b/Project-Unite/Views/Account/_ExternalLoginsListPartial.cshtml @@ -0,0 +1,28 @@ +@model Project_Unite.Models.ExternalLoginListViewModel +@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 { + using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) { + @Html.AntiForgeryToken() +
+

+ @foreach (AuthenticationDescription p in loginProviders) { + + } +

+
+ } + } +} -- cgit v1.2.3