From 04edebcc9029012a68de2eb7179224ce85a0e5e1 Mon Sep 17 00:00:00 2001 From: Jeff Mattson Date: Wed, 27 Oct 2021 21:39:43 -0400 Subject: [PATCH] remove ticket auth guid validation --- .../Structure/TicketAuthenticationHandler.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs b/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs index db727e4..8e2506a 100644 --- a/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs +++ b/src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs @@ -74,20 +74,13 @@ protected override async Task HandleAuthenticateAsync() string value = await _cache.GetStringAsync(key); - if (value.IsEmpty()) - return AuthenticateResult.NoResult(); - await _cache.RemoveAsync(key); - string identity = value.Untagged(); + string subject = value.Untagged(); string name = value.Tag(); - string subject = Guid.TryParse(identity, out Guid guid) - ? guid.ToString() - : ""; - - if (subject.IsEmpty()) // || expired) + if (subject.IsEmpty()) return AuthenticateResult.NoResult(); var principal = new ClaimsPrincipal(