Skip to content

Commit

Permalink
Development v1.0.0 (#86)
Browse files Browse the repository at this point in the history
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
rlwakefield authored Sep 27, 2024
1 parent 2935090 commit 9c9dab3
Show file tree
Hide file tree
Showing 159 changed files with 17,262 additions and 12,178 deletions.
115 changes: 58 additions & 57 deletions COMACON/COMACON.csproj
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 &quot;$(ProjectDir)OtherDependencies\*&quot; &quot;$(TargetDir)OtherDependencies&quot; /Y /E /I" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(ProjectDir)OtherDependencies\*&quot; &quot;$(TargetDir)OtherDependencies&quot; /Y /E /I" />
</Target>

<Target Name="PostBuild-Publish" AfterTargets="PostBuildEvent" Condition="'$(Configuration)'=='Publish'">
<Exec Command="xcopy &quot;$(ProjectDir)OtherDependencies\*&quot; &quot;$(ProjectDir)publish\OtherDependencies\&quot; /Y /E /I" />
</Target>
<Target Name="PostBuild-Publish" AfterTargets="PostBuildEvent" Condition="'$(Configuration)'=='Publish'">
<Exec Command="xcopy &quot;$(ProjectDir)OtherDependencies\*&quot; &quot;$(ProjectDir)publish\OtherDependencies\&quot; /Y /E /I" />
</Target>

</Project>
Binary file added COMACON/COMACON.db
Binary file not shown.
29 changes: 29 additions & 0 deletions COMACON/Controllers/BasePathMiddleware.cs
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);
}
}
10 changes: 10 additions & 0 deletions COMACON/Controllers/CoreController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ public IActionResult Home()
return View();
}

public IActionResult Login()
{
return View();
}

public IActionResult WebServer()
{
return View();
Expand Down Expand Up @@ -58,5 +63,10 @@ public IActionResult OnBasePatientWindow()
{
return View();
}

public IActionResult Settings()
{
return View();
}
}
}
Loading

0 comments on commit 9c9dab3

Please sign in to comment.