From 626b90807aecb4684a6f781acb4a20885847fe81 Mon Sep 17 00:00:00 2001 From: Jeff Mattson Date: Tue, 12 Oct 2021 21:15:54 -0400 Subject: [PATCH] clarify ticket auth --- src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs b/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs index ae23889..db727e4 100644 --- a/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs +++ b/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs @@ -74,7 +74,7 @@ protected override async Task HandleAuthenticateAsync() string value = await _cache.GetStringAsync(key); - if (!value.NotEmpty()) + if (value.IsEmpty()) return AuthenticateResult.NoResult(); await _cache.RemoveAsync(key); @@ -87,7 +87,7 @@ protected override async Task HandleAuthenticateAsync() ? guid.ToString() : ""; - if (subject == null) // || expired) + if (subject.IsEmpty()) // || expired) return AuthenticateResult.NoResult(); var principal = new ClaimsPrincipal(