Skip to content

Commit

Permalink
clarify ticket auth
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Oct 13, 2021
1 parent 93a8502 commit 626b908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()

string value = await _cache.GetStringAsync(key);

if (!value.NotEmpty())
if (value.IsEmpty())
return AuthenticateResult.NoResult();

await _cache.RemoveAsync(key);
Expand All @@ -87,7 +87,7 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
? guid.ToString()
: "";

if (subject == null) // || expired)
if (subject.IsEmpty()) // || expired)
return AuthenticateResult.NoResult();

var principal = new ClaimsPrincipal(
Expand Down

0 comments on commit 626b908

Please sign in to comment.