Skip to content

Commit

Permalink
remove ticket auth guid validation
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Oct 28, 2021
1 parent f614b9a commit 04edebc
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/TopoMojo.Api/Structure/TicketAuthenticationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,13 @@ protected override async Task<AuthenticateResult> 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(
Expand Down

0 comments on commit 04edebc

Please sign in to comment.