Skip to content

Commit 1a58b6d

Browse files
committed
Add Required Projects
1 parent 2402785 commit 1a58b6d

File tree

81 files changed

+1401
-614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1401
-614
lines changed

UltimateAuth.slnx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
<Project Path="src/CodeBeam.UltimateAuth.Users/CodeBeam.UltimateAuth.Server.Users.csproj" Id="30d5db36-6dc8-46f6-9139-8b6b3d6053d5" />
1919
<Project Path="src/credentials/CodeBeam.UltimateAuth.Credentials.EntityFrameworkCore/CodeBeam.UltimateAuth.Credentials.EntityFrameworkCore.csproj" Id="1fd362d5-864b-4bb3-97be-9095d94cfdba" />
2020
<Project Path="src/credentials/CodeBeam.UltimateAuth.Credentials.InMemory/CodeBeam.UltimateAuth.Credentials.InMemory.csproj" Id="62ee7b1d-46ce-4f2e-985d-1e794f891b8b" />
21+
<Project Path="src/credentials/CodeBeam.UltimateAuth.Server.Credentials/CodeBeam.UltimateAuth.Server.Credentials.csproj" Id="2281c3b5-1d60-4542-a673-553f96eed25b" />
2122
<Project Path="src/security/CodeBeam.UltimateAuth.Security.Argon2/CodeBeam.UltimateAuth.Security.Argon2.csproj" Id="6abfb7a6-ea36-42db-a843-38054dd40fd8" />
2223
<Project Path="src/sessions/CodeBeam.UltimateAuth.Sessions.EntityFrameworkCore/CodeBeam.UltimateAuth.Sessions.EntityFrameworkCore.csproj" Id="5b9a090d-1689-4a81-9dfa-3ba69f0bda38" />
2324
<Project Path="src/sessions/CodeBeam.UltimateAuth.Sessions.InMemory/CodeBeam.UltimateAuth.Sessions.InMemory.csproj" Id="fc9bfef0-8a89-4639-81ee-3f84f6e33816" />
2425
<Project Path="src/tokens/CodeBeam.UltimateAuth.Tokens.EntityFrameworkCore/CodeBeam.UltimateAuth.Tokens.EntityFrameworkCore.csproj" Id="6eb14b32-0b56-460f-a2b2-f95d28bad625" />
2526
<Project Path="src/tokens/CodeBeam.UltimateAuth.Tokens.InMemory/CodeBeam.UltimateAuth.Tokens.InMemory.csproj" Id="8220884e-4958-4b49-8c69-56ce9d2b6c6f" />
27+
<Project Path="src/users/CodeBeam.UltimateAuth.Users.InMemory/CodeBeam.UltimateAuth.Users.InMemory.csproj" Id="7ce3df22-4773-4b9b-afd0-8ba506e0f9de" />
2628
</Solution>

samples/UAuthHub/CodeBeam.UltimateAuth.Sample.UAuthHub/CodeBeam.UltimateAuth.Sample.UAuthHub.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>net10.0</TargetFramework>
@@ -17,10 +17,13 @@
1717
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Client\CodeBeam.UltimateAuth.Client.csproj" />
1818
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Core\CodeBeam.UltimateAuth.Core.csproj" />
1919
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Server\CodeBeam.UltimateAuth.Server.csproj" />
20+
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Users\CodeBeam.UltimateAuth.Server.Users.csproj" />
2021
<ProjectReference Include="..\..\..\src\credentials\CodeBeam.UltimateAuth.Credentials.InMemory\CodeBeam.UltimateAuth.Credentials.InMemory.csproj" />
22+
<ProjectReference Include="..\..\..\src\credentials\CodeBeam.UltimateAuth.Server.Credentials\CodeBeam.UltimateAuth.Server.Credentials.csproj" />
2123
<ProjectReference Include="..\..\..\src\security\CodeBeam.UltimateAuth.Security.Argon2\CodeBeam.UltimateAuth.Security.Argon2.csproj" />
2224
<ProjectReference Include="..\..\..\src\sessions\CodeBeam.UltimateAuth.Sessions.InMemory\CodeBeam.UltimateAuth.Sessions.InMemory.csproj" />
2325
<ProjectReference Include="..\..\..\src\tokens\CodeBeam.UltimateAuth.Tokens.InMemory\CodeBeam.UltimateAuth.Tokens.InMemory.csproj" />
26+
<ProjectReference Include="..\..\..\src\users\CodeBeam.UltimateAuth.Users.InMemory\CodeBeam.UltimateAuth.Users.InMemory.csproj" />
2427
</ItemGroup>
2528

2629
</Project>

samples/UAuthHub/CodeBeam.UltimateAuth.Sample.UAuthHub/Components/Pages/Home.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ private async Task ProgrammaticPkceLogin()
7878

7979
var request = new PkceLoginRequest
8080
{
81-
Identifier = "Admin",
82-
Secret = "Password!",
81+
Identifier = "admin",
82+
Secret = "admin",
8383
AuthorizationCode = credentials?.AuthorizationCode ?? string.Empty,
8484
CodeVerifier = credentials?.CodeVerifier ?? string.Empty,
8585
ReturnUrl = _state?.ReturnUrl ?? string.Empty

samples/UAuthHub/CodeBeam.UltimateAuth.Sample.UAuthHub/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
using CodeBeam.UltimateAuth.Server.Infrastructure;
1212
using CodeBeam.UltimateAuth.Sessions.InMemory;
1313
using CodeBeam.UltimateAuth.Tokens.InMemory;
14+
using CodeBeam.UltimateAuth.Users.InMemory.Extensions;
15+
using CodeBeam.UltimateAuth.Credentials.InMemory.Extensions;
1416
using MudBlazor.Services;
1517
using MudExtensions.Services;
1618

@@ -46,7 +48,8 @@
4648
//o.Session.TouchInterval = TimeSpan.FromSeconds(9);
4749
//o.Session.IdleTimeout = TimeSpan.FromSeconds(15);
4850
})
49-
.AddInMemoryCredentials()
51+
.AddUltimateAuthUsersInMemory()
52+
.AddUltimateAuthCredentialsInMemory()
5053
.AddUltimateAuthInMemorySessions()
5154
.AddUltimateAuthInMemoryTokens()
5255
.AddUltimateAuthArgon2();

samples/blazor-server/CodeBeam.UltimateAuth.Sample.BlazorServer/CodeBeam.UltimateAuth.Sample.BlazorServer.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Client\CodeBeam.UltimateAuth.Client.csproj" />
1717
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Core\CodeBeam.UltimateAuth.Core.csproj" />
1818
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Server\CodeBeam.UltimateAuth.Server.csproj" />
19+
<ProjectReference Include="..\..\..\src\CodeBeam.UltimateAuth.Users\CodeBeam.UltimateAuth.Server.Users.csproj" />
20+
<ProjectReference Include="..\..\..\src\credentials\CodeBeam.UltimateAuth.Server.Credentials\CodeBeam.UltimateAuth.Server.Credentials.csproj" />
1921
<ProjectReference Include="..\..\..\src\security\CodeBeam.UltimateAuth.Security.Argon2\CodeBeam.UltimateAuth.Security.Argon2.csproj" />
2022
<ProjectReference Include="..\..\..\src\credentials\CodeBeam.UltimateAuth.Credentials.InMemory\CodeBeam.UltimateAuth.Credentials.InMemory.csproj" />
2123
<ProjectReference Include="..\..\..\src\sessions\CodeBeam.UltimateAuth.Sessions.InMemory\CodeBeam.UltimateAuth.Sessions.InMemory.csproj" />
2224
<ProjectReference Include="..\..\..\src\tokens\CodeBeam.UltimateAuth.Tokens.InMemory\CodeBeam.UltimateAuth.Tokens.InMemory.csproj" />
25+
<ProjectReference Include="..\..\..\src\users\CodeBeam.UltimateAuth.Users.InMemory\CodeBeam.UltimateAuth.Users.InMemory.csproj" />
2326
</ItemGroup>
2427

2528
</Project>

samples/blazor-server/CodeBeam.UltimateAuth.Sample.BlazorServer/Components/Pages/Home.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ private async Task ProgrammaticLogin()
4141
var deviceId = await DeviceIdProvider.GetOrCreateAsync();
4242
var request = new LoginRequest
4343
{
44-
Identifier = "Admin",
45-
Secret = "Password!",
44+
Identifier = "admin",
45+
Secret = "admin",
4646
Device = DeviceContext.FromDeviceId(deviceId),
4747
};
4848
await UAuthClient.LoginAsync(request);

samples/blazor-server/CodeBeam.UltimateAuth.Sample.BlazorServer/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
using CodeBeam.UltimateAuth.Server.Extensions;
99
using CodeBeam.UltimateAuth.Sessions.InMemory;
1010
using CodeBeam.UltimateAuth.Tokens.InMemory;
11+
using CodeBeam.UltimateAuth.Users.InMemory.Extensions;
12+
using CodeBeam.UltimateAuth.Credentials.InMemory.Extensions;
1113
using Microsoft.AspNetCore.Components;
1214
using MudBlazor.Services;
1315
using MudExtensions.Services;
@@ -44,7 +46,8 @@
4446
//o.Session.TouchInterval = TimeSpan.FromSeconds(9);
4547
//o.Session.IdleTimeout = TimeSpan.FromSeconds(15);
4648
})
47-
.AddInMemoryCredentials()
49+
.AddUltimateAuthUsersInMemory()
50+
.AddUltimateAuthCredentialsInMemory()
4851
.AddUltimateAuthInMemorySessions()
4952
.AddUltimateAuthInMemoryTokens()
5053
.AddUltimateAuthArgon2();

samples/blazor-standalone-wasm/CodeBeam.UltimateAuth.Sample.BlazorStandaloneWasm/Pages/Home.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ private async Task ProgrammaticLogin()
4646
var device = await DeviceIdProvider.GetOrCreateAsync();
4747
var request = new LoginRequest
4848
{
49-
Identifier = "Admin",
50-
Secret = "Password!",
49+
Identifier = "admin",
50+
Secret = "admin",
5151
Device = DeviceContext.FromDeviceId(device),
5252
};
5353
await UAuthClient.LoginAsync(request);

src/CodeBeam.UltimateAuth.Core/Abstractions/Infrastructure/IUAuthPasswordHasher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
public interface IUAuthPasswordHasher
99
{
1010
string Hash(string password);
11-
bool Verify(string password, string hash);
11+
bool Verify(string hash, string secret);
1212
}
1313
}

src/CodeBeam.UltimateAuth.Core/Abstractions/Principals/IUserAuthenticator.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)