aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.Portal/Controllers/AccountController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.Portal/Controllers/AccountController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.Portal/Controllers/AccountController.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/Software/Visual_Studio/Web/Tango.Portal/Controllers/AccountController.cs b/Software/Visual_Studio/Web/Tango.Portal/Controllers/AccountController.cs
deleted file mode 100644
index 5475966d8..000000000
--- a/Software/Visual_Studio/Web/Tango.Portal/Controllers/AccountController.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.Mvc;
-using Microsoft.Owin.Security.Cookies;
-using Microsoft.Owin.Security.OpenIdConnect;
-using Microsoft.Owin.Security;
-
-namespace Tango.Portal.Controllers
-{
- public class AccountController : Controller
- {
- public void SignIn()
- {
- // Send an OpenID Connect sign-in request.
- if (!Request.IsAuthenticated)
- {
- HttpContext.GetOwinContext().Authentication.Challenge(new AuthenticationProperties { RedirectUri = "/" },
- OpenIdConnectAuthenticationDefaults.AuthenticationType);
- }
- }
-
- public void SignOut()
- {
- string callbackUrl = Url.Action("SignOutCallback", "Account", routeValues: null, protocol: Request.Url.Scheme);
-
- HttpContext.GetOwinContext().Authentication.SignOut(
- new AuthenticationProperties { RedirectUri = callbackUrl },
- OpenIdConnectAuthenticationDefaults.AuthenticationType, CookieAuthenticationDefaults.AuthenticationType);
- }
-
- public ActionResult SignOutCallback()
- {
- if (Request.IsAuthenticated)
- {
- // Redirect to home page if the user is authenticated.
- return RedirectToAction("Index", "Home");
- }
-
- return View();
- }
- }
-}