Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
DistributedCacheStateDataFormatter should handle failed Unprotect wor…
Browse files Browse the repository at this point in the history
…kflows #2533
  • Loading branch information
brockallen committed Aug 9, 2018
1 parent 5019ff7 commit 664eebe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Infrastructure/DistributedCacheStateDataFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public AuthenticationProperties Unprotect(string protectedText, string purpose)
var cacheKey = $"{CacheKeyPrefix}-{purpose}-{key}";
var json = Cache.GetString(cacheKey);

if (json == null)
{
return null;
}

return ObjectSerializer.FromString<AuthenticationProperties>(json);
}
}
Expand Down

0 comments on commit 664eebe

Please sign in to comment.