Skip to content
Discussion options

You must be logged in to vote

You can perform some tasks to help speed up incoming requests, yes.

Preloading cached data

During the startup phase, after initializing IdentityServer's services and pipeline, you can preload the client and resource data. Note that IClientStore does not offer a way to load (or cache) all client data at once, so I would only focus on the most-requested clients and cache those using their client ID:

var builder = WebApplication.CreateBuilder(args);

var app = builder
    .ConfigureServices()
    .ConfigurePipeline();

// Resolve a scope to retrieve an IClientStore and IResourceStore
await using (var scope = app.Services.CreateAsyncScope())
{
    var clientStore = scope.ServiceProvider.GetRe…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by janssensjeroen
Comment options

You must be logged in to vote
3 replies
@wcabus
Comment options

@janssensjeroen
Comment options

@wcabus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants