Skip to content

Commit 829cbbb

Browse files
committed
Little Changes and Notes
1 parent 1103f5e commit 829cbbb

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<UALoginForm @ref="_form" Identifier="@_username" Secret="@_password">
2727
<MudStack>
2828
<MudText Typo="Typo.h4">Welcome to UltimateAuth!</MudText>
29-
<MudTextField @bind-Value="@_username" Variant="Variant.Outlined" Label="Username" Immediate="true" />
30-
<MudPasswordField @bind-Value="@_password" Variant="Variant.Outlined" Label="Password" Immediate="true" />
29+
<MudTextField @bind-Value="@_username" Variant="Variant.Outlined" Label="Username" Immediate="true" HelperText="Default: Admin" />
30+
<MudPasswordField @bind-Value="@_password" Variant="Variant.Outlined" Label="Password" Immediate="true" HelperText="Default: Password!" />
3131
<MudButton Variant="Variant.Filled" Color="Color.Primary" ButtonType="ButtonType.Submit">Login</MudButton>
3232
</MudStack>
3333
</UALoginForm>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646

4747
builder.Services.AddUltimateAuthServer(o => {
4848
o.Diagnostics.EnableRefreshHeaders = true;
49-
o.Session.MaxLifetime = TimeSpan.FromSeconds(32);
50-
o.Session.TouchInterval = TimeSpan.FromSeconds(9);
51-
o.Session.IdleTimeout = TimeSpan.FromSeconds(15);
49+
//o.Session.MaxLifetime = TimeSpan.FromSeconds(32);
50+
//o.Session.TouchInterval = TimeSpan.FromSeconds(9);
51+
//o.Session.IdleTimeout = TimeSpan.FromSeconds(15);
5252
})
5353
.AddInMemoryCredentials()
5454
.AddUltimateAuthInMemorySessions()
@@ -57,7 +57,7 @@
5757

5858
builder.Services.AddUltimateAuthClient(o =>
5959
{
60-
o.Refresh.Interval = TimeSpan.FromSeconds(5);
60+
//o.Refresh.Interval = TimeSpan.FromSeconds(5);
6161
o.Reauth.Behavior = ReauthBehavior.RaiseEvent;
6262
});
6363

src/CodeBeam.UltimateAuth.Core/Options/UAuthSessionOptions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace CodeBeam.UltimateAuth.Core.Options
44
{
5+
// TODO: Add rotate on refresh (especially on pureopaque). Currently PureOpaque sessions do not rotate on refresh.
6+
// It's not a security branch, but it would be nice to have for privacy reasons.
7+
// And add RotateAsync method.
8+
59
/// <summary>
610
/// Defines configuration settings that control the lifecycle,
711
/// security behavior, and device constraints of UltimateAuth

0 commit comments

Comments
 (0)