Skip to content

Commit 27b129d

Browse files
committed
feat(sso-persisted-grants) [PM-23572]: Add some additional clarifying comments on ExtendedCache vs InMemoryCaching for Duende.
1 parent 6b95588 commit 27b129d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bitwarden_license/src/Sso/Utilities/ServiceCollectionExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ public static IIdentityServerBuilder AddSsoIdentityServerServices(this IServiceC
7878
})
7979
.AddIdentityServerCertificate(env, globalSettings);
8080

81+
// PM-23572
8182
// Register named FusionCache for SSO authorization code grants
8283
// Provides separation of concerns and automatic Redis/in-memory negotiation
84+
// .AddInMemoryCaching should still persist above; this handles configuration caching, etc.,
85+
// and is separate from this keyed service, which only serves grant negotiation.
8386
services.AddExtendedCache("sso-grants", globalSettings);
8487

8588
// Store authorization codes in distributed cache for horizontal scaling

0 commit comments

Comments
 (0)