From 43c45ae90b31319254d8ed4c4b7c3b0245079d85 Mon Sep 17 00:00:00 2001 From: James South Date: Thu, 14 Aug 2014 22:18:57 +0100 Subject: [PATCH] Removing auth stuff to lighten test Former-commit-id: 69ca89e8a6ba95cb47197930ec4d9aa01db9f9f5 --- src/TestWebsites/WebForms/Account/Login.aspx | 47 ------ .../WebForms/Account/Login.aspx.cs | 24 --- .../WebForms/Account/Login.aspx.designer.cs | 35 ---- src/TestWebsites/WebForms/Account/Manage.aspx | 126 --------------- .../WebForms/Account/Manage.aspx.cs | 95 ----------- .../WebForms/Account/Manage.aspx.designer.cs | 66 -------- .../WebForms/Account/OpenAuthProviders.ascx | 21 --- .../Account/OpenAuthProviders.ascx.cs | 43 ----- .../OpenAuthProviders.ascx.designer.cs | 27 ---- .../WebForms/Account/Register.aspx | 62 ------- .../WebForms/Account/Register.aspx.cs | 31 ---- .../Account/Register.aspx.designer.cs | 35 ---- .../Account/RegisterExternalLogin.aspx | 35 ---- .../Account/RegisterExternalLogin.aspx.cs | 151 ------------------ .../RegisterExternalLogin.aspx.designer.cs | 39 ----- src/TestWebsites/WebForms/Account/Web.config | 12 -- .../WebForms/App_Start/AuthConfig.cs | 31 ---- src/TestWebsites/WebForms/Global.asax.cs | 1 - .../WebForms/Test_Website_Webforms.csproj | 76 --------- src/TestWebsites/WebForms/packages.config | 8 - 20 files changed, 965 deletions(-) delete mode 100644 src/TestWebsites/WebForms/Account/Login.aspx delete mode 100644 src/TestWebsites/WebForms/Account/Login.aspx.cs delete mode 100644 src/TestWebsites/WebForms/Account/Login.aspx.designer.cs delete mode 100644 src/TestWebsites/WebForms/Account/Manage.aspx delete mode 100644 src/TestWebsites/WebForms/Account/Manage.aspx.cs delete mode 100644 src/TestWebsites/WebForms/Account/Manage.aspx.designer.cs delete mode 100644 src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx delete mode 100644 src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.cs delete mode 100644 src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.designer.cs delete mode 100644 src/TestWebsites/WebForms/Account/Register.aspx delete mode 100644 src/TestWebsites/WebForms/Account/Register.aspx.cs delete mode 100644 src/TestWebsites/WebForms/Account/Register.aspx.designer.cs delete mode 100644 src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx delete mode 100644 src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.cs delete mode 100644 src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.designer.cs delete mode 100644 src/TestWebsites/WebForms/Account/Web.config delete mode 100644 src/TestWebsites/WebForms/App_Start/AuthConfig.cs diff --git a/src/TestWebsites/WebForms/Account/Login.aspx b/src/TestWebsites/WebForms/Account/Login.aspx deleted file mode 100644 index 9a04e8149e..0000000000 --- a/src/TestWebsites/WebForms/Account/Login.aspx +++ /dev/null @@ -1,47 +0,0 @@ -<%@ Page Title="Log in" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Test_Website_Webforms_NET45.Account.Login" %> -<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %> - - -
-

<%: Title %>.

-
-
-

Use a local account to log in.

- - -

- -

-
- Log in Form -
    -
  1. - User name - - -
  2. -
  3. - Password - - -
  4. -
  5. - - Remember me? -
  6. -
- -
-
-
-

- Register - if you don't have an account. -

-
- -
-

Use another service to log in.

- -
-
diff --git a/src/TestWebsites/WebForms/Account/Login.aspx.cs b/src/TestWebsites/WebForms/Account/Login.aspx.cs deleted file mode 100644 index 234c882fe8..0000000000 --- a/src/TestWebsites/WebForms/Account/Login.aspx.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; - -namespace Test_Website_Webforms_NET45.Account -{ - public partial class Login : Page - { - protected void Page_Load(object sender, EventArgs e) - { - RegisterHyperLink.NavigateUrl = "Register"; - OpenAuthLogin.ReturnUrl = Request.QueryString["ReturnUrl"]; - - var returnUrl = HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]); - if (!String.IsNullOrEmpty(returnUrl)) - { - RegisterHyperLink.NavigateUrl += "?ReturnUrl=" + returnUrl; - } - } - } -} \ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/Login.aspx.designer.cs b/src/TestWebsites/WebForms/Account/Login.aspx.designer.cs deleted file mode 100644 index b021637f78..0000000000 --- a/src/TestWebsites/WebForms/Account/Login.aspx.designer.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Test_Website_Webforms_NET45.Account -{ - - - public partial class Login - { - - /// - /// RegisterHyperLink control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.HyperLink RegisterHyperLink; - - /// - /// OpenAuthLogin control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::Test_Website_Webforms_NET45.Account.OpenAuthProviders OpenAuthLogin; - } -} diff --git a/src/TestWebsites/WebForms/Account/Manage.aspx b/src/TestWebsites/WebForms/Account/Manage.aspx deleted file mode 100644 index 4675b60afc..0000000000 --- a/src/TestWebsites/WebForms/Account/Manage.aspx +++ /dev/null @@ -1,126 +0,0 @@ -<%@ Page Title="Manage Account" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Test_Website_Webforms_NET45.Account.Manage" %> -<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %> - - -
-

<%: Title %>.

-
- -
- -

<%: SuccessMessage %>

-
- -

You're logged in as <%: User.Identity.Name %>.

- - -

- You do not have a local password for this site. Add a local - password so you can log in without an external login. -

-
- Set Password Form -
    -
  1. - Password - - - - - -
  2. -
  3. - Confirm password - - - -
  4. -
- -
-
- - -

Change password

- - -

- -

-
- Change password details -
    -
  1. - Current password - - -
  2. -
  3. - New password - - -
  4. -
  5. - Confirm new password - - - -
  6. -
- -
-
-
-
-
- -
- - - - -

Registered external logins

- - - - - -
ServiceUser NameLast Used 
-
- - - - <%#: Item.ProviderDisplayName %> - <%#: Item.ProviderUserName %> - <%#: ConvertToDisplayDateTime(Item.LastUsedUtc) %> - - - - - - -
- -

Add an external login

- -
-
diff --git a/src/TestWebsites/WebForms/Account/Manage.aspx.cs b/src/TestWebsites/WebForms/Account/Manage.aspx.cs deleted file mode 100644 index 311c127ffe..0000000000 --- a/src/TestWebsites/WebForms/Account/Manage.aspx.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -using Microsoft.AspNet.Membership.OpenAuth; - -namespace Test_Website_Webforms_NET45.Account -{ - public partial class Manage : System.Web.UI.Page - { - protected string SuccessMessage - { - get; - private set; - } - - protected bool CanRemoveExternalLogins - { - get; - private set; - } - - protected void Page_Load() - { - if (!IsPostBack) - { - // Determine the sections to render - var hasLocalPassword = OpenAuth.HasLocalPassword(User.Identity.Name); - setPassword.Visible = !hasLocalPassword; - changePassword.Visible = hasLocalPassword; - - CanRemoveExternalLogins = hasLocalPassword; - - // Render success message - var message = Request.QueryString["m"]; - if (message != null) - { - // Strip the query string from action - Form.Action = ResolveUrl("~/Account/Manage"); - - SuccessMessage = - message == "ChangePwdSuccess" ? "Your password has been changed." - : message == "SetPwdSuccess" ? "Your password has been set." - : message == "RemoveLoginSuccess" ? "The external login was removed." - : String.Empty; - successMessage.Visible = !String.IsNullOrEmpty(SuccessMessage); - } - } - - } - - protected void setPassword_Click(object sender, EventArgs e) - { - if (IsValid) - { - var result = OpenAuth.AddLocalPassword(User.Identity.Name, password.Text); - if (result.IsSuccessful) - { - Response.Redirect("~/Account/Manage?m=SetPwdSuccess"); - } - else - { - - ModelState.AddModelError("NewPassword", result.ErrorMessage); - - } - } - } - - - public IEnumerable GetExternalLogins() - { - var accounts = OpenAuth.GetAccountsForUser(User.Identity.Name); - CanRemoveExternalLogins = CanRemoveExternalLogins || accounts.Count() > 1; - return accounts; - } - - public void RemoveExternalLogin(string providerName, string providerUserId) - { - var m = OpenAuth.DeleteAccount(User.Identity.Name, providerName, providerUserId) - ? "?m=RemoveLoginSuccess" - : String.Empty; - Response.Redirect("~/Account/Manage" + m); - } - - - protected static string ConvertToDisplayDateTime(DateTime? utcDateTime) - { - // You can change this method to convert the UTC date time into the desired display - // offset and format. Here we're converting it to the server timezone and formatting - // as a short date and a long time string, using the current thread culture. - return utcDateTime.HasValue ? utcDateTime.Value.ToLocalTime().ToString("G") : "[never]"; - } - } -} \ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/Manage.aspx.designer.cs b/src/TestWebsites/WebForms/Account/Manage.aspx.designer.cs deleted file mode 100644 index f746b03b4b..0000000000 --- a/src/TestWebsites/WebForms/Account/Manage.aspx.designer.cs +++ /dev/null @@ -1,66 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Test_Website_Webforms_NET45.Account -{ - - - public partial class Manage - { - - /// - /// successMessage control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder successMessage; - - /// - /// setPassword control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder setPassword; - - /// - /// password control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox password; - - - - /// - /// confirmPassword control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox confirmPassword; - - /// - /// changePassword control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder changePassword; - - - } -} diff --git a/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx b/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx deleted file mode 100644 index 27fe593c0b..0000000000 --- a/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx +++ /dev/null @@ -1,21 +0,0 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OpenAuthProviders.ascx.cs" Inherits="Test_Website_Webforms_NET45.Account.OpenAuthProviders" %> - -
- Log in using another service - - - - - - - -
-

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.

-
-
-
-
\ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.cs b/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.cs deleted file mode 100644 index 98ac696ba6..0000000000 --- a/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Web; -using Microsoft.AspNet.Membership.OpenAuth; - -namespace Test_Website_Webforms_NET45.Account -{ - public partial class OpenAuthProviders : System.Web.UI.UserControl - { - protected void Page_Load(object sender, EventArgs e) - { - - if (IsPostBack) - { - var provider = Request.Form["provider"]; - if (provider == null) - { - return; - } - - var redirectUrl = "~/Account/RegisterExternalLogin"; - if (!String.IsNullOrEmpty(ReturnUrl)) - { - var resolvedReturnUrl = ResolveUrl(ReturnUrl); - redirectUrl += "?ReturnUrl=" + HttpUtility.UrlEncode(resolvedReturnUrl); - } - - OpenAuth.RequestAuthentication(provider, redirectUrl); - } - } - - - - public string ReturnUrl { get; set; } - - - public IEnumerable GetProviderNames() - { - return OpenAuth.AuthenticationClients.GetAll(); - } - - } -} \ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.designer.cs b/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.designer.cs deleted file mode 100644 index 4433c3d0c2..0000000000 --- a/src/TestWebsites/WebForms/Account/OpenAuthProviders.ascx.designer.cs +++ /dev/null @@ -1,27 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Test_Website_Webforms_NET45.Account -{ - - - public partial class OpenAuthProviders - { - - /// - /// providerDetails control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ListView providerDetails; - - } -} diff --git a/src/TestWebsites/WebForms/Account/Register.aspx b/src/TestWebsites/WebForms/Account/Register.aspx deleted file mode 100644 index 74a7221d50..0000000000 --- a/src/TestWebsites/WebForms/Account/Register.aspx +++ /dev/null @@ -1,62 +0,0 @@ -<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Test_Website_Webforms_NET45.Account.Register" %> - - -
-

<%: Title %>.

-

Use the form below to create a new account.

-
- - - - - - - - - -

- Passwords are required to be a minimum of <%: Membership.MinRequiredPasswordLength %> characters in length. -

- -

- -

- -
- Registration Form -
    -
  1. - User name - - -
  2. -
  3. - Email address - - -
  4. -
  5. - Password - - -
  6. -
  7. - Confirm password - - - -
  8. -
- -
-
- -
-
-
-
\ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/Register.aspx.cs b/src/TestWebsites/WebForms/Account/Register.aspx.cs deleted file mode 100644 index e36cc31742..0000000000 --- a/src/TestWebsites/WebForms/Account/Register.aspx.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using Microsoft.AspNet.Membership.OpenAuth; - -namespace Test_Website_Webforms_NET45.Account -{ - public partial class Register : Page - { - protected void Page_Load(object sender, EventArgs e) - { - RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"]; - } - - protected void RegisterUser_CreatedUser(object sender, EventArgs e) - { - FormsAuthentication.SetAuthCookie(RegisterUser.UserName, createPersistentCookie: false); - - string continueUrl = RegisterUser.ContinueDestinationPageUrl; - if (!OpenAuth.IsLocalUrl(continueUrl)) - { - continueUrl = "~/"; - } - Response.Redirect(continueUrl); - } - } -} \ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/Register.aspx.designer.cs b/src/TestWebsites/WebForms/Account/Register.aspx.designer.cs deleted file mode 100644 index af06bbb975..0000000000 --- a/src/TestWebsites/WebForms/Account/Register.aspx.designer.cs +++ /dev/null @@ -1,35 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Test_Website_Webforms_NET45.Account -{ - - - public partial class Register - { - - /// - /// RegisterUser control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CreateUserWizard RegisterUser; - - /// - /// RegisterUserWizardStep control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.CreateUserWizardStep RegisterUserWizardStep; - } -} diff --git a/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx b/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx deleted file mode 100644 index a5914d5913..0000000000 --- a/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx +++ /dev/null @@ -1,35 +0,0 @@ -<%@ Page Language="C#" Title="Register an external login" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RegisterExternalLogin.aspx.cs" Inherits="Test_Website_Webforms_NET45.Account.RegisterExternalLogin" %> - -
-

Register with your <%: ProviderDisplayName %> account

-

<%: ProviderUserName %>.

-
- - - - - - -
- Association Form -

- You've authenticated with <%: ProviderDisplayName %> as - <%: ProviderUserName %>. Please enter a user name below for the current site - and click the Log in button. -

-
    - -
- - -
-
-
diff --git a/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.cs b/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.cs deleted file mode 100644 index 18b667b127..0000000000 --- a/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System; -using System.Web; -using System.Web.Security; -using DotNetOpenAuth.AspNet; -using Microsoft.AspNet.Membership.OpenAuth; - -namespace Test_Website_Webforms_NET45.Account -{ - public partial class RegisterExternalLogin : System.Web.UI.Page - { - protected string ProviderName - { - get { return (string)ViewState["ProviderName"] ?? String.Empty; } - private set { ViewState["ProviderName"] = value; } - } - - protected string ProviderDisplayName - { - get { return (string)ViewState["ProviderDisplayName"] ?? String.Empty; } - private set { ViewState["ProviderDisplayName"] = value; } - } - - protected string ProviderUserId - { - get { return (string)ViewState["ProviderUserId"] ?? String.Empty; } - private set { ViewState["ProviderUserId"] = value; } - } - - protected string ProviderUserName - { - get { return (string)ViewState["ProviderUserName"] ?? String.Empty; } - private set { ViewState["ProviderUserName"] = value; } - } - - protected void Page_Load() - { - if (!IsPostBack) - { - ProcessProviderResult(); - } - } - - protected void logIn_Click(object sender, EventArgs e) - { - CreateAndLoginUser(); - } - - protected void cancel_Click(object sender, EventArgs e) - { - RedirectToReturnUrl(); - } - - private void ProcessProviderResult() - { - // Process the result from an auth provider in the request - ProviderName = OpenAuth.GetProviderNameFromCurrentRequest(); - - if (String.IsNullOrEmpty(ProviderName)) - { - Response.Redirect(FormsAuthentication.LoginUrl); - } - - // Build the redirect url for OpenAuth verification - var redirectUrl = "~/Account/RegisterExternalLogin"; - var returnUrl = Request.QueryString["ReturnUrl"]; - if (!String.IsNullOrEmpty(returnUrl)) - { - redirectUrl += "?ReturnUrl=" + HttpUtility.UrlEncode(returnUrl); - } - - // Verify the OpenAuth payload - var authResult = OpenAuth.VerifyAuthentication(redirectUrl); - ProviderDisplayName = OpenAuth.GetProviderDisplayName(ProviderName); - if (!authResult.IsSuccessful) - { - Title = "External login failed"; - userNameForm.Visible = false; - - ModelState.AddModelError("Provider", String.Format("External login {0} failed.", ProviderDisplayName)); - - // To view this error, enable page tracing in web.config () and visit ~/Trace.axd - Trace.Warn("OpenAuth", String.Format("There was an error verifying authentication with {0})", ProviderDisplayName), authResult.Error); - return; - } - - // User has logged in with provider successfully - // Check if user is already registered locally - if (OpenAuth.Login(authResult.Provider, authResult.ProviderUserId, createPersistentCookie: false)) - { - RedirectToReturnUrl(); - } - - // Store the provider details in ViewState - ProviderName = authResult.Provider; - ProviderUserId = authResult.ProviderUserId; - ProviderUserName = authResult.UserName; - - // Strip the query string from action - Form.Action = ResolveUrl(redirectUrl); - - if (User.Identity.IsAuthenticated) - { - // User is already authenticated, add the external login and redirect to return url - OpenAuth.AddAccountToExistingUser(ProviderName, ProviderUserId, ProviderUserName, User.Identity.Name); - RedirectToReturnUrl(); - } - else - { - // User is new, ask for their desired membership name - userName.Text = authResult.UserName; - } - } - - private void CreateAndLoginUser() - { - if (!IsValid) - { - return; - } - - var createResult = OpenAuth.CreateUser(ProviderName, ProviderUserId, ProviderUserName, userName.Text); - if (!createResult.IsSuccessful) - { - - ModelState.AddModelError("UserName", createResult.ErrorMessage); - - } - else - { - // User created & associated OK - if (OpenAuth.Login(ProviderName, ProviderUserId, createPersistentCookie: false)) - { - RedirectToReturnUrl(); - } - } - } - - private void RedirectToReturnUrl() - { - var returnUrl = Request.QueryString["ReturnUrl"]; - if (!String.IsNullOrEmpty(returnUrl) && OpenAuth.IsLocalUrl(returnUrl)) - { - Response.Redirect(returnUrl); - } - else - { - Response.Redirect("~/"); - } - } - } -} \ No newline at end of file diff --git a/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.designer.cs b/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.designer.cs deleted file mode 100644 index d3bd505c41..0000000000 --- a/src/TestWebsites/WebForms/Account/RegisterExternalLogin.aspx.designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Test_Website_Webforms_NET45.Account -{ - - - public partial class RegisterExternalLogin - { - - - - /// - /// userNameForm control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder userNameForm; - - /// - /// userName control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.TextBox userName; - - - } -} diff --git a/src/TestWebsites/WebForms/Account/Web.config b/src/TestWebsites/WebForms/Account/Web.config deleted file mode 100644 index 90fe314f63..0000000000 --- a/src/TestWebsites/WebForms/Account/Web.config +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/src/TestWebsites/WebForms/App_Start/AuthConfig.cs b/src/TestWebsites/WebForms/App_Start/AuthConfig.cs deleted file mode 100644 index 24093ce831..0000000000 --- a/src/TestWebsites/WebForms/App_Start/AuthConfig.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; -using Microsoft.AspNet.Membership.OpenAuth; - -namespace Test_Website_Webforms_NET45 -{ - internal static class AuthConfig - { - public static void RegisterOpenAuth() - { - // See http://go.microsoft.com/fwlink/?LinkId=252803 for details on setting up this ASP.NET - // application to support logging in via external services. - - //OpenAuth.AuthenticationClients.AddTwitter( - // consumerKey: "your Twitter consumer key", - // consumerSecret: "your Twitter consumer secret"); - - //OpenAuth.AuthenticationClients.AddFacebook( - // appId: "your Facebook app id", - // appSecret: "your Facebook app secret"); - - //OpenAuth.AuthenticationClients.AddMicrosoft( - // clientId: "your Microsoft account client id", - // clientSecret: "your Microsoft account client secret"); - - //OpenAuth.AuthenticationClients.AddGoogle(); - } - } -} \ No newline at end of file diff --git a/src/TestWebsites/WebForms/Global.asax.cs b/src/TestWebsites/WebForms/Global.asax.cs index 0ce814eeda..21e6fd992d 100644 --- a/src/TestWebsites/WebForms/Global.asax.cs +++ b/src/TestWebsites/WebForms/Global.asax.cs @@ -15,7 +15,6 @@ namespace Test_Website_Webforms_NET45 { // Code that runs on application startup BundleConfig.RegisterBundles(BundleTable.Bundles); - AuthConfig.RegisterOpenAuth(); RouteConfig.RegisterRoutes(RouteTable.Routes); } diff --git a/src/TestWebsites/WebForms/Test_Website_Webforms.csproj b/src/TestWebsites/WebForms/Test_Website_Webforms.csproj index ddb6983eab..67fe7fb430 100644 --- a/src/TestWebsites/WebForms/Test_Website_Webforms.csproj +++ b/src/TestWebsites/WebForms/Test_Website_Webforms.csproj @@ -73,46 +73,12 @@ ..\..\..\packages\Microsoft.AspNet.ScriptManager.WebForms.4.5.6\lib\net45\Microsoft.ScriptManager.WebForms.dll - - ..\..\..\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.dll - ..\..\..\packages\Microsoft.AspNet.Web.Optimization.1.0.0\lib\net40\System.Web.Optimization.dll ..\..\..\packages\Microsoft.AspNet.Providers.Core.1.2\lib\net40\System.Web.Providers.dll - - False - ..\..\..\packages\DotNetOpenAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.Core.dll - - - False - ..\..\..\packages\DotNetOpenAuth.OAuth.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OAuth.dll - - - False - ..\..\..\packages\DotNetOpenAuth.OAuth.Consumer.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OAuth.Consumer.dll - - - False - ..\..\..\packages\DotNetOpenAuth.OpenId.Core.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OpenId.dll - - - False - ..\..\..\packages\DotNetOpenAuth.OpenId.RelyingParty.4.1.4.12333\lib\net40-full\DotNetOpenAuth.OpenId.RelyingParty.dll - - - False - ..\..\..\packages\DotNetOpenAuth.AspNet.4.1.4.12333\lib\net40-full\DotNetOpenAuth.AspNet.dll - - - ..\..\..\packages\Microsoft.AspNet.Membership.OpenAuth.1.0.1\lib\net45\Microsoft.AspNet.Membership.OpenAuth.dll - - - True - ..\..\..\packages\Microsoft.AspNet.Web.Optimization.WebForms.1.0.0\lib\net45\Microsoft.AspNet.Web.Optimization.WebForms.dll - ..\..\..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.0\lib\net45\Microsoft.AspNet.FriendlyUrls.dll @@ -123,11 +89,6 @@ - - - - - @@ -179,7 +140,6 @@ - About.aspx ASPXCodeBehind @@ -187,41 +147,6 @@ About.aspx - - Login.aspx - ASPXCodeBehind - - - Login.aspx - - - Manage.aspx - ASPXCodeBehind - - - Manage.aspx - - - OpenAuthProviders.ascx - ASPXCodeBehind - - - OpenAuthProviders.ascx - - - Register.aspx - ASPXCodeBehind - - - Register.aspx - - - RegisterExternalLogin.aspx - ASPXCodeBehind - - - RegisterExternalLogin.aspx - Contact.aspx @@ -267,7 +192,6 @@ - diff --git a/src/TestWebsites/WebForms/packages.config b/src/TestWebsites/WebForms/packages.config index 319f73f4f9..d689bdfcdb 100644 --- a/src/TestWebsites/WebForms/packages.config +++ b/src/TestWebsites/WebForms/packages.config @@ -1,15 +1,7 @@  - - - - - - - -