main
Ogoun 6 months ago
parent c8a5574633
commit a3d0f6854d

@ -1,12 +1,9 @@
using BukiVedi.App.Middlewares;
using BukiVedi.Shared;
using BukiVedi.Shared.Entities;
using BukiVedi.Shared.Models;
using BukiVedi.Shared.Services;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Options;
using System.Net;
using System.Text;
using ZeroLevel;
@ -45,7 +42,7 @@ namespace BukiVedi.App
app.UseCookiePolicy(new CookiePolicyOptions
{
MinimumSameSitePolicy = SameSiteMode.Strict,
MinimumSameSitePolicy = SameSiteMode.Strict
});
app.UseAuthentication();
@ -64,7 +61,7 @@ namespace BukiVedi.App
var path = ctx.Context.Request.Path;
if (path.HasValue && path.Value.Contains("index.html", StringComparison.OrdinalIgnoreCase))
{
if (ctx.Context.User == null)
if ((ctx.Context.User?.Identity?.IsAuthenticated ?? false) == false)
{
ctx.Context.Response.ContentLength = 0;
ctx.Context.Response.Body = Stream.Null;
@ -94,7 +91,10 @@ namespace BukiVedi.App
}
services.AddSingleton<IAuthProvider>(authProvider);
services.AddSingleton<ILibrary>(new Library());
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o =>
{
o.LoginPath = new PathString("/web/login.html");
});
services.AddAuthorization(options =>
{

@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Project>
<PropertyGroup>
<_PublishTargetUrl>G:\Documents\GitHub\BukiVedi\src\BukiVedi.App\bin\Release\net8.0\publish\</_PublishTargetUrl>
<History>True|2024-04-04T13:59:14.8807703Z;True|2024-04-04T14:55:51.0062074+03:00;True|2024-04-04T14:01:53.0402462+03:00;True|2024-04-04T05:50:10.9326327+03:00;True|2024-04-04T05:23:22.3837261+03:00;True|2024-04-04T05:18:08.8436345+03:00;True|2024-04-04T05:13:03.4261357+03:00;True|2024-04-04T04:23:59.4217155+03:00;True|2024-04-04T04:12:10.2381826+03:00;True|2024-04-04T04:04:27.2386390+03:00;</History>
<History>True|2024-04-05T01:52:06.7814045Z;True|2024-04-05T04:46:11.3960475+03:00;True|2024-04-04T16:59:14.8807703+03:00;True|2024-04-04T14:55:51.0062074+03:00;True|2024-04-04T14:01:53.0402462+03:00;True|2024-04-04T05:50:10.9326327+03:00;True|2024-04-04T05:23:22.3837261+03:00;True|2024-04-04T05:18:08.8436345+03:00;True|2024-04-04T05:13:03.4261357+03:00;True|2024-04-04T04:23:59.4217155+03:00;True|2024-04-04T04:12:10.2381826+03:00;True|2024-04-04T04:04:27.2386390+03:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BukiVedi.App")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+4e697c91a83d95731e2cea4131399178264fd6a2")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c8a557463342d499355ed27e425463fa89b7173b")]
[assembly: System.Reflection.AssemblyProductAttribute("BukiVedi.App")]
[assembly: System.Reflection.AssemblyTitleAttribute("BukiVedi.App")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
9d9d30a119e571814faa5f6aa186f82345b545bc19591da9baa14505e2ac9e3d
a4008023d611329de19eb93895353fbf5436c04f519c836afe3257e02cb5c27f

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BukiVedi.App")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0854d0d5e375585dfb4831af0aa4e5089fb0e8ae")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c8a557463342d499355ed27e425463fa89b7173b")]
[assembly: System.Reflection.AssemblyProductAttribute("BukiVedi.App")]
[assembly: System.Reflection.AssemblyTitleAttribute("BukiVedi.App")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
3531308fa69562c7f091003e949cda5fd47d4576d0b841e7d38c85202ee27402
f411778caf5feb253bfafb32077ff4ee35f44944300272121ab4649fc28e757c

@ -67,6 +67,11 @@
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
},
"G:\\Documents\\GitHub\\BukiVedi\\src\\BukiVedi.Shared\\BukiVedi.Shared.csproj": {
@ -158,6 +163,11 @@
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
},
"G:\\Documents\\GitHub\\BukiVedi\\src\\Vendors\\LemmaGen_v3.0_PrebuiltFull\\LemmaSharpPrebuilt\\LemmaSharpPrebuilt.csproj": {
@ -283,6 +293,11 @@
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
}
}

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BukiVedi.Shared")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+4e697c91a83d95731e2cea4131399178264fd6a2")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c8a557463342d499355ed27e425463fa89b7173b")]
[assembly: System.Reflection.AssemblyProductAttribute("BukiVedi.Shared")]
[assembly: System.Reflection.AssemblyTitleAttribute("BukiVedi.Shared")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
86c42d4be25574172e2d579dfa02e41a379e51b0c675314acf9d44ccc18e6cee
a43e071fcbccab0ead5e03567912c2800cfe653f607dc22a76bee59d3a550861

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BukiVedi.Shared")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0854d0d5e375585dfb4831af0aa4e5089fb0e8ae")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c8a557463342d499355ed27e425463fa89b7173b")]
[assembly: System.Reflection.AssemblyProductAttribute("BukiVedi.Shared")]
[assembly: System.Reflection.AssemblyTitleAttribute("BukiVedi.Shared")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
65c5850b6ae69dad45b6208db985681ac1ab4c7f6a0bd5b23e4674420400e5c5
653e4a45fb94a4537544a949cec4dcc2f65aef478456fc0ccaf0293cf0578f31

@ -359,6 +359,332 @@
"bin/placeholder/ZeroLevel.dll": {}
}
}
},
"net8.0/linux-x64": {
"AWSSDK.Core/3.7.100.14": {
"type": "package",
"compile": {
"lib/netcoreapp3.1/AWSSDK.Core.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netcoreapp3.1/AWSSDK.Core.dll": {
"related": ".pdb;.xml"
}
}
},
"AWSSDK.SecurityToken/3.7.100.14": {
"type": "package",
"dependencies": {
"AWSSDK.Core": "[3.7.100.14, 4.0.0)"
},
"compile": {
"lib/netcoreapp3.1/AWSSDK.SecurityToken.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netcoreapp3.1/AWSSDK.SecurityToken.dll": {
"related": ".pdb;.xml"
}
}
},
"DnsClient/1.6.1": {
"type": "package",
"dependencies": {
"Microsoft.Win32.Registry": "5.0.0"
},
"compile": {
"lib/net5.0/DnsClient.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net5.0/DnsClient.dll": {
"related": ".xml"
}
}
},
"FB2Library/1.3.3": {
"type": "package",
"compile": {
"lib/net6.0/FB2Library.dll": {}
},
"runtime": {
"lib/net6.0/FB2Library.dll": {}
}
},
"Microsoft.Extensions.Logging.Abstractions/2.0.0": {
"type": "package",
"compile": {
"lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"related": ".xml"
}
}
},
"Microsoft.NETCore.Platforms/5.0.0": {
"type": "package",
"compile": {
"lib/netstandard1.0/_._": {}
},
"runtime": {
"lib/netstandard1.0/_._": {}
}
},
"Microsoft.Win32.Registry/5.0.0": {
"type": "package",
"dependencies": {
"System.Security.AccessControl": "5.0.0",
"System.Security.Principal.Windows": "5.0.0"
},
"compile": {
"ref/netstandard2.0/Microsoft.Win32.Registry.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.0/Microsoft.Win32.Registry.dll": {
"related": ".xml"
}
}
},
"MongoDB.Bson/2.24.0": {
"type": "package",
"dependencies": {
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "5.0.0"
},
"compile": {
"lib/netstandard2.1/MongoDB.Bson.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.1/MongoDB.Bson.dll": {
"related": ".xml"
}
}
},
"MongoDB.Driver/2.24.0": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "2.0.0",
"MongoDB.Bson": "2.24.0",
"MongoDB.Driver.Core": "2.24.0",
"MongoDB.Libmongocrypt": "1.8.2"
},
"compile": {
"lib/netstandard2.1/MongoDB.Driver.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.1/MongoDB.Driver.dll": {
"related": ".xml"
}
}
},
"MongoDB.Driver.Core/2.24.0": {
"type": "package",
"dependencies": {
"AWSSDK.SecurityToken": "3.7.100.14",
"DnsClient": "1.6.1",
"Microsoft.Extensions.Logging.Abstractions": "2.0.0",
"MongoDB.Bson": "2.24.0",
"MongoDB.Libmongocrypt": "1.8.2",
"SharpCompress": "0.30.1",
"Snappier": "1.0.0",
"System.Buffers": "4.5.1",
"ZstdSharp.Port": "0.7.3"
},
"compile": {
"lib/netstandard2.1/MongoDB.Driver.Core.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.1/MongoDB.Driver.Core.dll": {
"related": ".xml"
}
}
},
"MongoDB.Libmongocrypt/1.8.2": {
"type": "package",
"compile": {
"lib/netstandard2.1/MongoDB.Libmongocrypt.dll": {}
},
"runtime": {
"lib/netstandard2.1/MongoDB.Libmongocrypt.dll": {}
},
"native": {
"runtimes/linux/native/libmongocrypt.so": {}
},
"contentFiles": {
"contentFiles/any/any/_._": {
"buildAction": "None",
"codeLanguage": "any",
"copyToOutput": false
}
},
"build": {
"build/_._": {}
}
},
"SharpCompress/0.30.1": {
"type": "package",
"compile": {
"lib/net5.0/SharpCompress.dll": {}
},
"runtime": {
"lib/net5.0/SharpCompress.dll": {}
}
},
"Snappier/1.0.0": {
"type": "package",
"compile": {
"lib/net5.0/Snappier.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net5.0/Snappier.dll": {
"related": ".xml"
}
}
},
"System.Buffers/4.5.1": {
"type": "package",
"compile": {
"ref/netcoreapp2.0/_._": {}
},
"runtime": {
"lib/netcoreapp2.0/_._": {}
}
},
"System.Memory/4.5.5": {
"type": "package",
"compile": {
"ref/netcoreapp2.1/_._": {}
},
"runtime": {
"lib/netcoreapp2.1/_._": {}
}
},
"System.Runtime.CompilerServices.Unsafe/5.0.0": {
"type": "package",
"compile": {
"ref/netstandard2.1/System.Runtime.CompilerServices.Unsafe.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll": {
"related": ".xml"
}
}
},
"System.Security.AccessControl/5.0.0": {
"type": "package",
"dependencies": {
"Microsoft.NETCore.Platforms": "5.0.0",
"System.Security.Principal.Windows": "5.0.0"
},
"compile": {
"ref/netstandard2.0/System.Security.AccessControl.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netstandard2.0/System.Security.AccessControl.dll": {
"related": ".xml"
}
}
},
"System.Security.Principal.Windows/5.0.0": {
"type": "package",
"compile": {
"ref/netcoreapp3.0/System.Security.Principal.Windows.dll": {
"related": ".xml"
}
},
"runtime": {
"runtimes/unix/lib/netcoreapp2.1/System.Security.Principal.Windows.dll": {
"related": ".xml"
}
}
},
"ZstdSharp.Port/0.7.3": {
"type": "package",
"compile": {
"lib/net7.0/ZstdSharp.dll": {}
},
"runtime": {
"lib/net7.0/ZstdSharp.dll": {}
}
},
"LemmaSharp/1.0.0": {
"type": "project",
"compile": {
"bin/placeholder/LemmaSharp.dll": {}
},
"runtime": {
"bin/placeholder/LemmaSharp.dll": {}
}
},
"LemmaSharpPrebuilt/1.0.0": {
"type": "project",
"dependencies": {
"LemmaSharp": "1.0.0"
},
"compile": {
"bin/placeholder/LemmaSharpPrebuilt.dll": {}
},
"runtime": {
"bin/placeholder/LemmaSharpPrebuilt.dll": {}
}
},
"LemmaSharpPrebuiltFull/1.0.0": {
"type": "project",
"dependencies": {
"LemmaSharp": "1.0.0",
"LemmaSharpPrebuilt": "1.0.0"
},
"compile": {
"bin/placeholder/LemmaSharpPrebuiltFull.dll": {}
},
"runtime": {
"bin/placeholder/LemmaSharpPrebuiltFull.dll": {}
}
},
"Sleopok.Engine/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v8.0",
"dependencies": {
"ZeroLevel": "3.4.0.8"
},
"compile": {
"bin/placeholder/Sleopok.Engine.dll": {}
},
"runtime": {
"bin/placeholder/Sleopok.Engine.dll": {}
}
},
"ZeroLevel/3.4.0.8": {
"type": "project",
"framework": ".NETCoreApp,Version=v8.0",
"compile": {
"bin/placeholder/ZeroLevel.dll": {}
},
"runtime": {
"bin/placeholder/ZeroLevel.dll": {}
}
}
}
},
"libraries": {
@ -987,6 +1313,11 @@
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.200/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
}
}

@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "YVwM+KO4mWGH6B1BXss/L3tLASd1EDkcdE0fSC9tmlDJYRd8v5KkEYaBZw9w1Pjlc6cFAx0UOnW6xgMSuFnyQg==",
"dgSpecHash": "PH28x1HAQv9f0NTmNqx7WpXX82izLpORxxiImmQTk9jKk/yc9Yni4anyFP84qZadoYiyIhJezrcd+gCGU9cUwA==",
"success": true,
"projectFilePath": "G:\\Documents\\GitHub\\BukiVedi\\src\\BukiVedi.Shared\\BukiVedi.Shared.csproj",
"expectedPackageFiles": [

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("TitleReader")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+4e697c91a83d95731e2cea4131399178264fd6a2")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c8a557463342d499355ed27e425463fa89b7173b")]
[assembly: System.Reflection.AssemblyProductAttribute("TitleReader")]
[assembly: System.Reflection.AssemblyTitleAttribute("TitleReader")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
c5ac3a47b85a3d5934c2eb5b570db310225ebb22491771b55abcb0f32d99cb90
b064e79da2f4298b356e06af43b5adc09f838eadea0c95d3b75f3feb5730691d

@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("TitleReader")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0854d0d5e375585dfb4831af0aa4e5089fb0e8ae")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c8a557463342d499355ed27e425463fa89b7173b")]
[assembly: System.Reflection.AssemblyProductAttribute("TitleReader")]
[assembly: System.Reflection.AssemblyTitleAttribute("TitleReader")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

@ -1 +1 @@
9a4ac1bdf8e753ca582aac6d60e4f00ccc72e21ef68b9d97367802a151cbe289
e29e3847e1870a8b2283d9767f0d8bba17e27ffc069e272dc56eb006e566030b

Loading…
Cancel
Save

Powered by TurnKey Linux.