Table of Contents

Class DistributedDeviceFlowThrottlingService

Namespace
Duende.IdentityServer.Services
Assembly
Duende.IdentityServer.dll

The default device flow throttling service using IDistributedCache.

public class DistributedDeviceFlowThrottlingService : IDeviceFlowThrottlingService
Inheritance
DistributedDeviceFlowThrottlingService
Implements
Inherited Members

Constructors

DistributedDeviceFlowThrottlingService(IDistributedCache, IClientStore, IClock, IdentityServerOptions)

Initializes a new instance of the DistributedDeviceFlowThrottlingService class.

public DistributedDeviceFlowThrottlingService(IDistributedCache cache, IClientStore clientStore, IClock clock, IdentityServerOptions options)

Parameters

cache IDistributedCache

The cache.

clientStore IClientStore
clock IClock

The clock.

options IdentityServerOptions

The options.

See Also

Methods

ShouldSlowDown(string, DeviceCode)

Decides if the requesting client and device code needs to slow down.

public Task<bool> ShouldSlowDown(string deviceCode, DeviceCode details)

Parameters

deviceCode string

The device code.

details DeviceCode

The device code details.

Returns

Task<bool>

Exceptions

ArgumentNullException

deviceCode

See Also

See Also