Configures the OpenIdConnect handlers to persist the state parameter into the server-side IDistributedCache.
public static IServiceCollection AddOidcStateDataFormatterCache(IServiceCollection services, params string schemes)
- Returns:
- IServiceCollection
Parameters
services
IServiceCollection
The services.
schemes
string
The schemes to configure. If none provided, then all OpenIdConnect schemes will use the cache.