Skip to content

Commit 1e41dfb

Browse files
buehlerjosephdecock
authored andcommitted
Changes according to review
1 parent 939c86e commit 1e41dfb

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/Infrastructure/CacheExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ public static async Task<IEnumerable<Claim>> GetClaimsAsync(this IDistributedCac
4646
public static async Task SetClaimsAsync(this IDistributedCache cache, OAuth2IntrospectionOptions options, string token, IEnumerable<Claim> claims, TimeSpan duration, ILogger logger)
4747
{
4848
var expClaim = claims.FirstOrDefault(c => c.Type == JwtClaimTypes.Expiration);
49-
if (expClaim == null && !options.CacheIgnoreMissingExp)
50-
{
51-
Log.NoExpClaimFound(logger, null);
52-
return;
53-
}
54-
5549
var now = DateTimeOffset.UtcNow;
5650
var expiration = expClaim == null
5751
? now + duration

src/OAuth2IntrospectionOptions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ public OAuth2IntrospectionOptions()
114114
/// </summary>
115115
public string CacheKeyPrefix { get; set; } = string.Empty;
116116

117-
/// <summary>
118-
/// If set, the caching mechanism will ignore missing "exp" claims in the
119-
/// introspection response.
120-
/// </summary>
121-
public bool CacheIgnoreMissingExp { get; set; }
122-
123117
/// <summary>
124118
/// Specifies the method how to generate the cache key from the token
125119
/// </summary>

0 commit comments

Comments
 (0)