Class DeviceFlowStore
Inheritance
System.Object
DeviceFlowStore
Assembly: Volo.Abp.IdentityServer.Domain.dll
Syntax
public class DeviceFlowStore : IDeviceFlowStore
Constructors
DeviceFlowStore(IDeviceFlowCodesRepository, IGuidGenerator, IPersistentGrantSerializer)
Declaration
public DeviceFlowStore(IDeviceFlowCodesRepository deviceFlowCodesRepository, IGuidGenerator guidGenerator, IPersistentGrantSerializer persistentGrantSerializer)
Parameters
| Type |
Name |
Description |
| IDeviceFlowCodesRepository |
deviceFlowCodesRepository |
|
| IGuidGenerator |
guidGenerator |
|
| IPersistentGrantSerializer |
persistentGrantSerializer |
|
Properties
DeviceFlowCodesRepository
Declaration
protected IDeviceFlowCodesRepository DeviceFlowCodesRepository { get; }
Property Value
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
| Type |
Description |
| IGuidGenerator |
|
PersistentGrantSerializer
Declaration
protected IPersistentGrantSerializer PersistentGrantSerializer { get; }
Property Value
| Type |
Description |
| IPersistentGrantSerializer |
|
Methods
DeserializeToDeviceCode(String)
Declaration
protected virtual DeviceCode DeserializeToDeviceCode(string data)
Parameters
| Type |
Name |
Description |
| System.String |
data |
|
Returns
| Type |
Description |
| DeviceCode |
|
FindByDeviceCodeAsync(String)
Declaration
public virtual Task<DeviceCode> FindByDeviceCodeAsync(string deviceCode)
Parameters
| Type |
Name |
Description |
| System.String |
deviceCode |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<DeviceCode> |
|
FindByUserCodeAsync(String)
Declaration
public virtual Task<DeviceCode> FindByUserCodeAsync(string userCode)
Parameters
| Type |
Name |
Description |
| System.String |
userCode |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<DeviceCode> |
|
RemoveByDeviceCodeAsync(String)
Declaration
public virtual Task RemoveByDeviceCodeAsync(string deviceCode)
Parameters
| Type |
Name |
Description |
| System.String |
deviceCode |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Serialize(DeviceCode)
Declaration
protected virtual string Serialize(DeviceCode deviceCode)
Parameters
| Type |
Name |
Description |
| DeviceCode |
deviceCode |
|
Returns
| Type |
Description |
| System.String |
|
StoreDeviceAuthorizationAsync(String, String, DeviceCode)
Declaration
public virtual Task StoreDeviceAuthorizationAsync(string deviceCode, string userCode, DeviceCode data)
Parameters
| Type |
Name |
Description |
| System.String |
deviceCode |
|
| System.String |
userCode |
|
| DeviceCode |
data |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
UpdateByUserCodeAsync(String, DeviceCode)
Declaration
public virtual Task UpdateByUserCodeAsync(string userCode, DeviceCode data)
Parameters
| Type |
Name |
Description |
| System.String |
userCode |
|
| DeviceCode |
data |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Extension Methods