test(security): DL-2 review nits — assert IsAuthenticated + clarify handler flag gating
This commit is contained in:
@@ -17,6 +17,9 @@ namespace ZB.MOM.WW.ScadaBridge.Security.Auth;
|
||||
public sealed class AutoLoginAuthenticationHandler
|
||||
: AuthenticationHandler<AuthenticationSchemeOptions>, IAuthenticationSignInHandler
|
||||
{
|
||||
// Only _opts.User is consumed here. The DisableLogin flag is gated at registration time
|
||||
// (AddSecurity); if DisableLogin is false this handler is never registered, so it is
|
||||
// never reached and the flag itself is irrelevant inside the handler.
|
||||
private readonly AuthDisableLoginOptions _opts;
|
||||
private readonly TimeProvider _clock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user