Table of Contents

Interface IDeviceFlowCodeService

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

Wrapper service for IDeviceFlowStore.

public interface IDeviceFlowCodeService

Methods

FindByDeviceCodeAsync(string)

Finds device authorization by device code.

Task<DeviceCode?> FindByDeviceCodeAsync(string deviceCode)

Parameters

deviceCode string

The device code.

Returns

Task<DeviceCode>

FindByUserCodeAsync(string)

Finds device authorization by user code.

Task<DeviceCode?> FindByUserCodeAsync(string userCode)

Parameters

userCode string

The user code.

Returns

Task<DeviceCode>

RemoveByDeviceCodeAsync(string)

Removes the device authorization, searching by device code.

Task RemoveByDeviceCodeAsync(string deviceCode)

Parameters

deviceCode string

The device code.

Returns

Task

StoreDeviceAuthorizationAsync(string, DeviceCode)

Stores the device authorization request.

Task<string> StoreDeviceAuthorizationAsync(string userCode, DeviceCode data)

Parameters

userCode string

The user code.

data DeviceCode

The data.

Returns

Task<string>

UpdateByUserCodeAsync(string, DeviceCode)

Updates device authorization, searching by user code.

Task UpdateByUserCodeAsync(string userCode, DeviceCode data)

Parameters

userCode string

The user code.

data DeviceCode

The data.

Returns

Task