Skip to content

Commit

Permalink
Merge pull request #42 from damienbod/dev-updates
Browse files Browse the repository at this point in the history
Updated all packages, update code styles
  • Loading branch information
damienbod authored Oct 22, 2022
2 parents adbd717 + fc5c2ee commit f2a3acd
Show file tree
Hide file tree
Showing 69 changed files with 2,008 additions and 356 deletions.
7 changes: 4 additions & 3 deletions AspNetCoreRequireMfaOidc/AspNetCoreRequireMfaOidc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.10" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.5" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.10" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ public class AccessDeniedModel : PageModel
{
public void OnGet()
{

}
}
5 changes: 0 additions & 5 deletions AspNetCoreRequireMfaOidc/Pages/Error.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;

namespace AspNetCoreRequireMfaOidc.Pages;

Expand Down
1 change: 0 additions & 1 deletion AspNetCoreRequireMfaOidc/Pages/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ public class IndexModel : PageModel
{
public void OnGet()
{

}
}
3 changes: 1 addition & 2 deletions AspNetCoreRequireMfaOidc/Pages/Logout.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand Down
3 changes: 0 additions & 3 deletions AspNetCoreRequireMfaOidc/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace AspNetCoreRequireMfaOidc;

public class Program
Expand Down
3 changes: 0 additions & 3 deletions AspNetCoreRequireMfaOidc/RequireMfaHandler.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Microsoft.AspNetCore.Authorization;
using System;
using System.Linq;
using System.Threading.Tasks;

namespace AspNetCoreRequireMfaOidc;

Expand Down
6 changes: 0 additions & 6 deletions AspNetCoreRequireMfaOidc/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
using System.IdentityModel.Tokens.Jwt;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace AspNetCoreRequireMfaOidc;

Expand Down
3 changes: 0 additions & 3 deletions DeviceFlowWeb/DeviceFlowService.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using IdentityModel.Client;
using Microsoft.Extensions.Options;
using System;
using System.Net.Http;
using System.Threading.Tasks;

namespace DeviceFlowWeb;

Expand Down
21 changes: 11 additions & 10 deletions DeviceFlowWeb/DeviceFlowWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<UserSecretsId>7953929f-5999-4847-b4b8-2f6cf964f467</UserSecretsId>
<Nullable>enable</Nullable>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.5" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.10" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.10" />
<PackageReference Include="IdentityModel" Version="6.0.0" />
<PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="Serilog.AspNetCore" Version="6.0.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.1.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.3.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.4.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="5.1.1" />
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.16.1" />
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="0.16.1" />
<PackageReference Include="Serilog.Sinks.Seq" Version="5.2.1" />
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.17.0" />
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="0.17.0" />
</ItemGroup>

<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('node_modules') ">
Expand Down
5 changes: 1 addition & 4 deletions DeviceFlowWeb/Pages/Login.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

Expand Down
1 change: 0 additions & 1 deletion DeviceFlowWeb/Pages/Logout.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Threading.Tasks;

namespace DeviceFlowWeb.Pages;

Expand Down
5 changes: 1 addition & 4 deletions DeviceFlowWeb/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace DeviceFlowWeb;
namespace DeviceFlowWeb;

public class Program
{
Expand Down
7 changes: 0 additions & 7 deletions DeviceFlowWeb/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;

namespace DeviceFlowWeb;

Expand Down
8 changes: 4 additions & 4 deletions DeviceFlowWeb/bundleconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"inputFiles": [
"wwwroot/css/site.css"
],
"minify": { "enabled": true }
"minify": { "enabled": false }
},
{
"outputFileName": "wwwroot/js/site.min.js",
Expand All @@ -28,7 +28,7 @@
"inputFiles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"minify": { "enabled": true }
"minify": { "enabled": false }
},
// Vendor JS
{
Expand All @@ -38,7 +38,7 @@
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
],
"minify": {
"enabled": true,
"enabled": false,
"renameLocals": true
},
"sourceMap": false
Expand All @@ -53,7 +53,7 @@
"node_modules//jquery-ajax-unobtrusive/jquery.unobtrusive-ajax.min.js"
],
"minify": {
"enabled": true,
"enabled": false,
"renameLocals": true
},
"sourceMap": false
Expand Down
86 changes: 52 additions & 34 deletions DeviceFlowWeb/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions DeviceFlowWeb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
"private": true,
"devDependencies": {
"bootstrap": "4.6.0",
"jquery": "3.6.0",
"jquery": "3.6.1",
"jquery-ajax-unobtrusive": "3.2.6",
"jquery-validation": "1.19.3",
"jquery-validation-unobtrusive": "3.2.12"
},
"dependencies": {
"jquery-validation": "1.19.5",
"jquery-validation-unobtrusive": "4.0.0",
"popper.js": "^1.16.1"
}
}
Loading

0 comments on commit f2a3acd

Please sign in to comment.