Skip to content

Commit b682862

Browse files
author
gauffininteractive
committed
cleanup
1 parent 977553e commit b682862

37 files changed

+21
-237
lines changed

src/Server/OneTrueError.Web/App_Start/IdentityConfig.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/Server/OneTrueError.Web/App_Start/Startup.Auth.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
42
using Microsoft.AspNet.Identity;
5-
using Microsoft.AspNet.Identity.EntityFramework;
63
using Microsoft.Owin;
74
using Microsoft.Owin.Security.Cookies;
8-
using Microsoft.Owin.Security.Google;
95
using Microsoft.Owin.Security.OAuth;
106
using Owin;
11-
using OneTrueError.Web.Providers;
12-
using OneTrueError.Web.Models;
137

148
namespace OneTrueError.Web
159
{
@@ -22,10 +16,6 @@ public partial class Startup
2216
// For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864
2317
public void ConfigureAuth(IAppBuilder app)
2418
{
25-
// Configure the db context and user manager to use a single instance per request
26-
app.CreatePerOwinContext(ApplicationDbContext.Create);
27-
app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create);
28-
2919
// Enable the application to use a cookie to store information for the signed in user
3020
// and to use a cookie to temporarily store information about a user logging in with a third party login provider
3121
app.UseCookieAuthentication(new CookieAuthenticationOptions());
@@ -36,7 +26,7 @@ public void ConfigureAuth(IAppBuilder app)
3626
OAuthOptions = new OAuthAuthorizationServerOptions
3727
{
3828
TokenEndpointPath = new PathString("/Token"),
39-
Provider = new ApplicationOAuthProvider(PublicClientId),
29+
//Provider = new ApplicationOAuthProvider(PublicClientId),
4030
AuthorizeEndpointPath = new PathString("/api/Account/ExternalLogin"),
4131
AccessTokenExpireTimeSpan = TimeSpan.FromDays(14),
4232
// In production mode set AllowInsecureHttp = false
@@ -66,4 +56,4 @@ public void ConfigureAuth(IAppBuilder app)
6656
//});
6757
}
6858
}
69-
}
59+
}

src/Server/OneTrueError.Web/Controllers/AccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public async Task<ActionResult> Login(LoginViewModel model)
211211
ModelState.AddModelError("", "Incorrect username or password.");
212212
else
213213
ModelState.AddModelError("",
214-
"Your account is locked or have not been activated (check your email account). Contact support@onetrueerror.com if you need assistance.");
214+
"Your account is locked or have not been activated (check your mailbox). Contact support@onetrueerror.com if you need assistance.");
215215

216216
model.Password = "";
217217
return View(model);

src/Server/OneTrueError.Web/Models/IdentityModels.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Server/OneTrueError.Web/OneTrueError.Web.csproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,21 +160,12 @@
160160
</Reference>
161161
</ItemGroup>
162162
<ItemGroup>
163-
<Reference Include="EntityFramework">
164-
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
165-
</Reference>
166-
<Reference Include="EntityFramework.SqlServer">
167-
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
168-
</Reference>
169163
<Reference Include="Microsoft.AspNet.Identity.Core">
170164
<HintPath>..\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll</HintPath>
171165
</Reference>
172166
<Reference Include="Microsoft.AspNet.Identity.Owin">
173167
<HintPath>..\packages\Microsoft.AspNet.Identity.Owin.2.2.1\lib\net45\Microsoft.AspNet.Identity.Owin.dll</HintPath>
174168
</Reference>
175-
<Reference Include="Microsoft.AspNet.Identity.EntityFramework">
176-
<HintPath>..\packages\Microsoft.AspNet.Identity.EntityFramework.2.2.1\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll</HintPath>
177-
</Reference>
178169
<Reference Include="Owin">
179170
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
180171
</Reference>
@@ -216,7 +207,6 @@
216207
<Compile Include="App_Start\Cqs\JsonFormatter.cs" />
217208
<Compile Include="App_Start\Cqs\Metadata.cs" />
218209
<Compile Include="App_Start\FilterConfig.cs" />
219-
<Compile Include="App_Start\IdentityConfig.cs" />
220210
<Compile Include="App_Start\IoC\GriffinContainerAdapter.cs" />
221211
<Compile Include="App_Start\IoC\GriffinContainerScopeAdapter.cs" />
222212
<Compile Include="App_Start\IoC\GriffinWebApiChildScope.cs" />
@@ -293,10 +283,8 @@
293283
<Compile Include="Models\Account\RegisterViewModel.cs" />
294284
<Compile Include="Models\Account\RequestPasswordResetViewModel.cs" />
295285
<Compile Include="Models\Account\ResetPasswordViewModel.cs" />
296-
<Compile Include="Models\IdentityModels.cs" />
297286
<Compile Include="Models\SessionUser.cs" />
298287
<Compile Include="Properties\AssemblyInfo.cs" />
299-
<Compile Include="Providers\ApplicationOAuthProvider.cs" />
300288
<Compile Include="Results\ChallengeResult.cs" />
301289
<Compile Include="Startup.cs" />
302290
</ItemGroup>

src/Server/OneTrueError.Web/Providers/ApplicationOAuthProvider.cs

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/Server/OneTrueError.Web/Scripts/CqsClient.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ var Griffin;
5656
Cqs.CqsClient = CqsClient;
5757
})(Cqs = Griffin.Cqs || (Griffin.Cqs = {}));
5858
})(Griffin || (Griffin = {}));
59-
//# sourceMappingURL=CqsClient.js.map

src/Server/OneTrueError.Web/Scripts/Griffin.Editor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,4 +645,3 @@ var Griffin;
645645
}());
646646
Griffin.TextSelector = TextSelector;
647647
})(Griffin || (Griffin = {}));
648-
//# sourceMappingURL=Griffin.Editor.js.map

src/Server/OneTrueError.Web/Scripts/Griffin.Net.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,3 @@ var Griffin;
224224
Net.HttpClient = HttpClient;
225225
})(Net = Griffin.Net || (Griffin.Net = {}));
226226
})(Griffin || (Griffin = {})); // ReSharper restore InconsistentNaming
227-
//# sourceMappingURL=Griffin.Net.js.map

src/Server/OneTrueError.Web/Scripts/Griffin.WebApp.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,3 @@ var Griffin;
364364
WebApp.Pager = Pager;
365365
})(WebApp = Griffin.WebApp || (Griffin.WebApp = {}));
366366
})(Griffin || (Griffin = {}));
367-
//# sourceMappingURL=Griffin.WebApp.js.map

0 commit comments

Comments
 (0)