Skip to content

Commit b32c71a

Browse files
authored
fix: set size for cached client secrets in DefaultAppleClientSecretGenerator
Specifying a size is required when IMemoryCache is configured with a SizeLimit (#1190)
1 parent fa8ca57 commit b32c71a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AspNet.Security.OAuth.Apple/Internal/DefaultAppleClientSecretGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override async Task<string> GenerateAsync([NotNull] AppleGenerateClientSe
3535
Log.ClientSecretGenerationFailed(logger, ex, context.Scheme.Name);
3636
throw;
3737
}
38-
});
38+
}, new MemoryCacheEntryOptions { Size = 1 });
3939

4040
return clientSecret!;
4141
}

0 commit comments

Comments
 (0)