mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-14 09:34:21 +01:00
Updating auth in DatBased submodule
This commit is contained in:
parent
aeb2038b81
commit
bc619c62cb
2
DotBased
2
DotBased
|
@ -1 +1 @@
|
|||
Subproject commit c092b8a679c218c845e4981deb7b5b5dd174a311
|
||||
Subproject commit 0fed89e140c1500495e01f1f836416f107dcdbce
|
5
DotBased.Identity/Class1.cs
Normal file
5
DotBased.Identity/Class1.cs
Normal file
|
@ -0,0 +1,5 @@
|
|||
namespace DotBased.Identity;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
}
|
9
DotBased.Identity/DotBased.Identity.csproj
Normal file
9
DotBased.Identity/DotBased.Identity.csproj
Normal file
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
|
@ -23,10 +23,10 @@ builder.Services.AddBasedServerAuth(options =>
|
|||
options.LogoutPath = "/auth/logout";
|
||||
options.SeedData = service =>
|
||||
{
|
||||
service.CreateUserAsync(new UserModel() { UserName = "Admin", Email = "admin@example.com", Enabled = true, PasswordHash = "password", Roles = new List<RoleModel>() { new RoleModel() { Name = "Admin", Description = "Administration role." }}});
|
||||
service.CreateUserAsync(new UserModel() { UserName = "User", Email = "user@example.com", Enabled = true, PasswordHash = "password"});
|
||||
/*service.CreateUserAsync(new UserModel() { UserName = "Admin", Email = "admin@example.com", Enabled = true, PasswordHash = "password", Roles = new List<RoleModel>() { new RoleModel() { Name = "Admin", Description = "Administration role." }}});
|
||||
service.CreateUserAsync(new UserModel() { UserName = "User", Email = "user@example.com", Enabled = true, PasswordHash = "password"});*/
|
||||
};
|
||||
options.SetDataProviderType<MemoryAuthDataProvider>();
|
||||
options.SetDataRepositoryType<MemoryAuthDataRepository>();
|
||||
options.SetSessionStateProviderType<LocalStorageSessionStateProvider>();
|
||||
});
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user