Table of Contents

Interface IDeviceFlowThrottlingService

Namespace
Fdyay.IdentityServer.Services
Assembly
Fdyay.IdentityServer.Core.dll

Decides whether a device is polling faster than it was told to (RFC 8628 ยง3.5).

public interface IDeviceFlowThrottlingService

Methods

ShouldSlowDownAsync(string, DeviceCode, CancellationToken)

Records this poll and returns true if it arrived sooner than the interval allows.

Task<bool> ShouldSlowDownAsync(string deviceCode, DeviceCode data, CancellationToken cancellationToken = default)

Parameters

deviceCode string
data DeviceCode
cancellationToken CancellationToken

Returns

Task<bool>