From f01990061988089274a06eb49a3aeb353ab09c5e Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 1 Apr 2015 13:55:33 +1100 Subject: [PATCH] oops, not sure how the LICENSE got deleted, removed AD identity nuspec since that is in a diff repo now. Removes commented out code in umb module for auth - this is done by cookie middleware now. --- LICENSE.md | 9 +++++ .../NuSpecs/UmbracoCms.ActiveDirectory.nuspec | 26 ------------- src/Umbraco.Web/UmbracoModule.cs | 39 ------------------- src/umbraco.sln | 1 - 4 files changed, 9 insertions(+), 66 deletions(-) create mode 100644 LICENSE.md delete mode 100644 build/NuSpecs/UmbracoCms.ActiveDirectory.nuspec diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000000..c5560c3ce1 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +# The MIT License (MIT) # + +Copyright (c) 2013 Umbraco + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/NuSpecs/UmbracoCms.ActiveDirectory.nuspec b/build/NuSpecs/UmbracoCms.ActiveDirectory.nuspec deleted file mode 100644 index e25bd9825d..0000000000 --- a/build/NuSpecs/UmbracoCms.ActiveDirectory.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - UmbracoCms.Identity.ActiveDirectory - 1.0.0 - Umbraco Extensibility for ASP.Net Identity Active Directory - Umbraco HQ - Umbraco HQ - http://opensource.org/licenses/MIT - http://umbraco.com/ - http://umbraco.com/media/357769/100px_transparent.png - false - Installs files/classes to help with ASP.Net Identity Active Directory provider extensibility for Umbraco back office - Installs classes to help with ASP.Net Identity Active Directory extensibility for Umbraco - en-US - umbraco aspnet identity activedirectory - - - - - - - - - - \ No newline at end of file diff --git a/src/Umbraco.Web/UmbracoModule.cs b/src/Umbraco.Web/UmbracoModule.cs index 719f7135c4..772573d164 100644 --- a/src/Umbraco.Web/UmbracoModule.cs +++ b/src/Umbraco.Web/UmbracoModule.cs @@ -166,43 +166,6 @@ namespace Umbraco.Web RewriteToUmbracoHandler(httpContext, pcr); } - /// - /// Authenticates the request by reading the FormsAuthentication cookie and setting the - /// context and thread principle object - /// - /// - /// - /// - /// We will set the identity, culture, etc... for any request that is: - /// * A back office request - /// * An installer request - /// * A /base request (since these can be back office web service requests) - /// - static void AuthenticateRequest(object sender, EventArgs e) - { - //var app = (HttpApplication)sender; - //var http = new HttpContextWrapper(app.Context); - - //// do not process if client-side request - //if (http.Request.Url.IsClientSideRequest()) - // return; - - //var req = new HttpRequestWrapper(app.Request); - - //if (ShouldAuthenticateRequest(req, UmbracoContext.Current.OriginalRequestUrl)) - //{ - // //TODO: Here we should have an authentication mechanism, this mechanism should be smart in the way that the ASP.Net 5 pipeline works - // // in which each registered handler will attempt to authenticate and if it fails it will just call Next() so the next handler - // // executes. If it is successful, it doesn't call next and assigns the current user/principal. - // // This might actually all be possible with ASP.Net Identity and how it is setup to work already, need to investigate. - - // var ticket = http.GetUmbracoAuthTicket(); - - // http.AuthenticateCurrentRequest(ticket, ShouldIgnoreTicketRenew(UmbracoContext.Current.OriginalRequestUrl, http) == false); - //} - - } - #endregion #region Methods @@ -590,8 +553,6 @@ namespace Umbraco.Web BeginRequest(new HttpContextWrapper(httpContext)); }; - app.AuthenticateRequest += AuthenticateRequest; - app.PostResolveRequestCache += (sender, e) => { var httpContext = ((HttpApplication)sender).Context; diff --git a/src/umbraco.sln b/src/umbraco.sln index d839dd0a01..7c550c17ba 100644 --- a/src/umbraco.sln +++ b/src/umbraco.sln @@ -27,7 +27,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{B5BD12C1 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuSpecs", "NuSpecs", "{227C3B55-80E5-4E7E-A802-BE16C5128B9D}" ProjectSection(SolutionItems) = preProject - ..\build\NuSpecs\UmbracoCms.ActiveDirectory.nuspec = ..\build\NuSpecs\UmbracoCms.ActiveDirectory.nuspec ..\build\NuSpecs\UmbracoCms.Core.AllBinaries.nuspec = ..\build\NuSpecs\UmbracoCms.Core.AllBinaries.nuspec ..\build\NuSpecs\UmbracoCms.Core.nuspec = ..\build\NuSpecs\UmbracoCms.Core.nuspec ..\build\NuSpecs\UmbracoCms.Core.Symbols.nuspec = ..\build\NuSpecs\UmbracoCms.Core.Symbols.nuspec