-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds in one of the biggest and best additions to the COMACON utility...AUTHENTICATION! This release adds the following functionality: 1. Authentication 2. Password reset (Forgot Password functionality will be added in a future release) 3. User Management 4. Audit History (not visually showing yet, but hopefully soon enough) And I am so happy that I feel comfortable enough to be able to release this out as the official V1.0.0 release. I can't wait to hear back from others about this and your ideas on how I can make it better. Thank you to everyone who has supported me in this endeavor so far and I can't wait to see what the future holds for this utility!
- Loading branch information
1 parent
2935090
commit 9c9dab3
Showing
159 changed files
with
17,262 additions
and
12,178 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,69 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<OutputType>Exe</OutputType> | ||
<Configurations>Debug;Release;Production;Publish</Configurations> | ||
<Version>0.8.0</Version> | ||
<BaseOutputPath></BaseOutputPath> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<OutputType>Exe</OutputType> | ||
<Configurations>Debug;Release;Production;Publish</Configurations> | ||
<Version>1.0.0</Version> | ||
<BaseOutputPath></BaseOutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Production|AnyCPU'"> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Production|AnyCPU'"> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'"> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Publish|AnyCPU'"> | ||
<Optimize>True</Optimize> | ||
</PropertyGroup> | ||
|
||
<!--<ItemGroup> | ||
<None Remove="OtherDependencies\COMACON Helper.exe" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Resources\" /> | ||
<Folder Include="wwwroot\images\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="OtherDependencies\COMACON Helper.exe" /> | ||
</ItemGroup>--> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.8" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.8"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Web.Administration" Version="11.1.0" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.4.0" /> | ||
<PackageReference Include="Serilog" Version="4.0.0" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" /> | ||
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1" /> | ||
<PackageReference Include="Serilog.Enrichers.Process" Version="3.0.0" /> | ||
<PackageReference Include="Serilog.Enrichers.Thread" Version="4.0.0" /> | ||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.1" /> | ||
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" /> | ||
<PackageReference Include="System.Data.OracleClient" Version="1.0.8" /> | ||
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" /> | ||
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="wwwroot\images\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Web.Administration" Version="11.1.0" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.4.0" /> | ||
<PackageReference Include="Serilog" Version="4.0.0" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" /> | ||
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1" /> | ||
<PackageReference Include="Serilog.Enrichers.Process" Version="3.0.0" /> | ||
<PackageReference Include="Serilog.Enrichers.Thread" Version="4.0.0" /> | ||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.1" /> | ||
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" /> | ||
<PackageReference Include="System.Data.OracleClient" Version="1.0.8" /> | ||
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" /> | ||
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\COMACONTranslationToHelperUtility\COMACONTranslationToHelperUtility.csproj"> | ||
<Private>True</Private> | ||
<CopyLocalSatelliteAssemblies>True</CopyLocalSatelliteAssemblies> | ||
</ProjectReference> | ||
<ProjectReference Include="..\COMACON_Helper\COMACON_Helper.csproj"> | ||
<CopyLocalSatelliteAssemblies>True</CopyLocalSatelliteAssemblies> | ||
<Private>True</Private> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\COMACONTranslationToHelperUtility\COMACONTranslationToHelperUtility.csproj"> | ||
<Private>True</Private> | ||
<CopyLocalSatelliteAssemblies>True</CopyLocalSatelliteAssemblies> | ||
</ProjectReference> | ||
<ProjectReference Include="..\COMACON_Helper\COMACON_Helper.csproj"> | ||
<CopyLocalSatelliteAssemblies>True</CopyLocalSatelliteAssemblies> | ||
<Private>True</Private> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> | ||
<Exec Command="xcopy "$(ProjectDir)OtherDependencies\*" "$(TargetDir)OtherDependencies" /Y /E /I" /> | ||
</Target> | ||
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> | ||
<Exec Command="xcopy "$(ProjectDir)OtherDependencies\*" "$(TargetDir)OtherDependencies" /Y /E /I" /> | ||
</Target> | ||
|
||
<Target Name="PostBuild-Publish" AfterTargets="PostBuildEvent" Condition="'$(Configuration)'=='Publish'"> | ||
<Exec Command="xcopy "$(ProjectDir)OtherDependencies\*" "$(ProjectDir)publish\OtherDependencies\" /Y /E /I" /> | ||
</Target> | ||
<Target Name="PostBuild-Publish" AfterTargets="PostBuildEvent" Condition="'$(Configuration)'=='Publish'"> | ||
<Exec Command="xcopy "$(ProjectDir)OtherDependencies\*" "$(ProjectDir)publish\OtherDependencies\" /Y /E /I" /> | ||
</Target> | ||
|
||
</Project> |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
public class BasePathMiddleware | ||
{ | ||
private readonly RequestDelegate _next; | ||
|
||
public BasePathMiddleware(RequestDelegate next) | ||
{ | ||
_next = next; | ||
} | ||
|
||
public async Task InvokeAsync(HttpContext context) | ||
{ | ||
var path = context.Request.Path.Value; | ||
|
||
//Locate the string "api/Endpoint" in the path. | ||
if (path.Contains("api/Endpoint")) | ||
{ | ||
//If the string is found, remove all characters before it. | ||
path = path.Substring(path.IndexOf("api/Endpoint")); | ||
} | ||
|
||
// Check if the path starts with "/app" and adjust the request path | ||
//if (path.StartsWith("/app")) | ||
//{ | ||
// context.Request.Path = path.Substring(4); // Remove "/app" from the path | ||
//} | ||
|
||
await _next(context); | ||
} | ||
} |
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
Oops, something went wrong.