File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
samples/blazor-server/UltimateAuth.Sample.BlazorServer
src/CodeBeam.UltimateAuth.Core/Options Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 4646
4747builder . 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 ( )
5757
5858builder . 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
Original file line number Diff line number Diff line change 22
33namespace 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
You can’t perform that action at this time.
0 commit comments