APi Scopes
This commit is contained in:
parent
4f8ccc919d
commit
be7df3d054
25 changed files with 823 additions and 116 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
using IdentityServer8.EntityFramework.Interfaces;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.ChangeTracking;
|
||||
|
|
@ -23,8 +22,8 @@ namespace Yavsc.Models
|
|||
using IT.Fixing;
|
||||
using Market;
|
||||
using Messaging;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Musical;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Musical;
|
||||
using Musical.Profiles;
|
||||
using Payment;
|
||||
using Relationship;
|
||||
|
|
@ -36,8 +35,7 @@ namespace Yavsc.Models
|
|||
using Workflow;
|
||||
using Workflow.Profiles;
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>,
|
||||
IConfigurationDbContext, IPersistedGrantDbContext
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
public ApplicationDbContext()
|
||||
{
|
||||
|
|
@ -81,7 +79,7 @@ namespace Yavsc.Models
|
|||
;
|
||||
|
||||
builder.Entity<Activity>().Property(a => a.ParentCode).IsRequired(false);
|
||||
|
||||
|
||||
builder.Entity<Client>().Property("Id").UseIdentityAlwaysColumn();
|
||||
builder.Entity<ClientSecret>().Property("Id").UseIdentityAlwaysColumn();
|
||||
builder.Entity<ClientScope>().Property("Id").UseIdentityAlwaysColumn();
|
||||
|
|
@ -240,12 +238,12 @@ namespace Yavsc.Models
|
|||
return await base.SaveChangesAsync(ctoken);
|
||||
}
|
||||
|
||||
public Task<int> SaveChangesAsync()
|
||||
{
|
||||
return base.SaveChangesAsync();
|
||||
}
|
||||
public Task<int> SaveChangesAsync()
|
||||
{
|
||||
return base.SaveChangesAsync();
|
||||
}
|
||||
|
||||
public DbSet<Circle> Circle { get; set; }
|
||||
public DbSet<Circle> Circle { get; set; }
|
||||
|
||||
public DbSet<CircleAuthorizationToBlogPost> CircleAuthorizationToBlogPost { get; set; }
|
||||
|
||||
|
|
@ -338,8 +336,7 @@ namespace Yavsc.Models
|
|||
public DbSet<PersistedGrant> PersistedGrants { get; set; }
|
||||
public DbSet<DeviceFlowCodes> DeviceFlowCodes { get; set; }
|
||||
|
||||
|
||||
|
||||
public DbSet<YavscApiScope> YavscApiScopes { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
8
src/Yavsc.Server/Models/YavscApiResource.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiResource.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiResource : ApiResource
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscApiResourceClaim.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiResourceClaim.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiResourceClaim : ApiResourceClaim
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscApiResourceProperty.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiResourceProperty.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiResourceProperty : ApiResourceProperty
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscApiResourceScope.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiResourceScope.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiResourceScope : ApiResourceScope
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscApiResourceSecret.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiResourceSecret.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiResourceSecret : ApiResourceSecret
|
||||
{
|
||||
}
|
||||
}
|
||||
9
src/Yavsc.Server/Models/YavscApiScope.cs
Normal file
9
src/Yavsc.Server/Models/YavscApiScope.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiScope : ApiScope
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscApiScopeClaim.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiScopeClaim.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiScopeClaim : ApiScopeClaim
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscApiScopeProperty.cs
Normal file
8
src/Yavsc.Server/Models/YavscApiScopeProperty.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscApiScopeProperty : ApiScopeProperty
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscDeviceFlowCodes.cs
Normal file
8
src/Yavsc.Server/Models/YavscDeviceFlowCodes.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscDeviceFlowCodes : DeviceFlowCodes
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/Yavsc.Server/Models/YavscPersistedGrant.cs
Normal file
8
src/Yavsc.Server/Models/YavscPersistedGrant.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using IdentityServer8.EntityFramework.Entities;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
public class YavscPersistedGrant : PersistedGrant
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue