mirror of https://github.com/abpframework/abp.git
13 changed files with 117 additions and 1 deletions
@ -0,0 +1,31 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.Domain.Entities.Auditing; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.Devices |
||||
|
{ |
||||
|
public class DeviceFlowCodes : CreationAuditedAggregateRoot<Guid> |
||||
|
{ |
||||
|
public virtual string DeviceCode { get; set; } |
||||
|
|
||||
|
public virtual string UserCode { get; set; } |
||||
|
|
||||
|
public virtual string SubjectId { get; set; } |
||||
|
|
||||
|
public virtual string ClientId { get; set; } |
||||
|
|
||||
|
public virtual DateTime? Expiration { get; set; } |
||||
|
|
||||
|
public virtual string Data { get; set; } |
||||
|
|
||||
|
private DeviceFlowCodes() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public DeviceFlowCodes(Guid id) |
||||
|
: base(id) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.Domain.Repositories; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.Devices |
||||
|
{ |
||||
|
public interface IDeviceFlowCodesRepository : IBasicRepository<DeviceFlowCodes, Guid> |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,17 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
||||
|
using Volo.Abp.EntityFrameworkCore; |
||||
|
using Volo.Abp.IdentityServer.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.Devices |
||||
|
{ |
||||
|
public class DeviceFlowCodesRepository : EfCoreRepository<IIdentityServerDbContext, DeviceFlowCodes, Guid>, |
||||
|
IDeviceFlowCodesRepository |
||||
|
{ |
||||
|
public DeviceFlowCodesRepository(IDbContextProvider<IIdentityServerDbContext> dbContextProvider) |
||||
|
: base(dbContextProvider) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.Domain.Repositories.MongoDB; |
||||
|
using Volo.Abp.IdentityServer.Devices; |
||||
|
using Volo.Abp.MongoDB; |
||||
|
|
||||
|
namespace Volo.Abp.IdentityServer.MongoDB |
||||
|
{ |
||||
|
public class MongoDeviceFlowCodesRepository : |
||||
|
MongoDbRepository<IAbpIdentityServerMongoDbContext, DeviceFlowCodes, Guid>, IDeviceFlowCodesRepository |
||||
|
{ |
||||
|
public MongoDeviceFlowCodesRepository( |
||||
|
IMongoDbContextProvider<IAbpIdentityServerMongoDbContext> dbContextProvider) : base(dbContextProvider) |
||||
|
{ |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue