This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
// | |
// GET: /Account/ExternalLoginCallback | |
[AllowAnonymous] | |
public ActionResult ExternalLoginCallback(string returnUrl) | |
{ | |
// Hack around DotNetOpenAuth and OAuth providers using the returnUrl for things that are in the state parameter (Amazon, Google) | |
// Our provider passed the querystring part of the replay address into the state field | |
// On return we parse that state parameter and put the arguments back where DotNetOpenAuth expects them, than redirect back to ourselves | |
if (!String.IsNullOrEmpty(Request.QueryString["state"])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Auction.Web.Utility; | |
using System.Web.Mvc; | |
namespace Auction.Web.Controllers | |
{ | |
[CookieConsent] | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Auction.Web.Utility | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>@ViewBag.Title - My ASP.NET MVC Application</title> | |
@RenderSection("meta", false) | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="~/Content/less/bootstrap.less" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Auction.Web.Utility; | |
using System.Web.Mvc; | |
namespace Auction.Web.Controllers | |
{ | |
[AllowAnonymous] | |
public class SiteController : BaseController | |
{ | |
public ActionResult AllowCookies(string ReturnUrl) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>@ViewBag.Title - My ASP.NET MVC Application</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="~/Content/less/bootstrap.less" rel="stylesheet"> | |
<style type="text/css" > | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
Layout = null; | |
} | |
<html> | |
<body> | |
<script type="text/javascript" src="//connect.facebook.net/@(System.Globalization.CultureInfo.CurrentCulture.ToString().Replace("-", "_"))/all.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web.Mvc; | |
using System.Web.WebPages; | |
namespace Auction.Web.Areas.Facebook | |
{ | |
public class FacebookAreaRegistration : AreaRegistration | |
{ | |
public override string AreaName | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Auction.Web.Areas.Facebook.Controllers | |
{ | |
public class HomeController : Auction.Web.Controllers.HomeController | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Auction.Web.Domain; | |
using Auction.Web.Domain.Commands; | |
using Auction.Web.Domain.Entities; | |
using Auction.Web.Domain.Queries; | |
using Facebook; | |
using Microsoft.Web.WebPages.OAuth; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; |