|
|
|
|
@ -11,10 +11,11 @@ using Volo.Abp.Identity;
|
|
|
|
|
using Volo.Abp.IdentityServer.ApiResources;
|
|
|
|
|
using Volo.Abp.IdentityServer.Clients;
|
|
|
|
|
using Volo.Abp.IdentityServer.Devices;
|
|
|
|
|
using Volo.Abp.IdentityServer.Grants;
|
|
|
|
|
using Volo.Abp.IdentityServer.IdentityResources;
|
|
|
|
|
using Volo.Abp.IdentityServer.Tokens;
|
|
|
|
|
using Volo.Abp.Modularity;
|
|
|
|
|
using Volo.Abp.ObjectExtending;
|
|
|
|
|
using Volo.Abp.ObjectExtending.Modularity;
|
|
|
|
|
using Volo.Abp.Security;
|
|
|
|
|
using Volo.Abp.Validation;
|
|
|
|
|
|
|
|
|
|
@ -95,6 +96,27 @@ namespace Volo.Abp.IdentityServer
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void PostConfigureServices(ServiceConfigurationContext context)
|
|
|
|
|
{
|
|
|
|
|
ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity(
|
|
|
|
|
IdentityServerModuleExtensionConsts.ModuleName,
|
|
|
|
|
IdentityServerModuleExtensionConsts.EntityNames.Client,
|
|
|
|
|
typeof(Client)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity(
|
|
|
|
|
IdentityServerModuleExtensionConsts.ModuleName,
|
|
|
|
|
IdentityServerModuleExtensionConsts.EntityNames.IdentityResource,
|
|
|
|
|
typeof(IdentityResource)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToEntity(
|
|
|
|
|
IdentityServerModuleExtensionConsts.ModuleName,
|
|
|
|
|
IdentityServerModuleExtensionConsts.EntityNames.ApiResource,
|
|
|
|
|
typeof(ApiResource)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnApplicationInitialization(ApplicationInitializationContext context)
|
|
|
|
|
{
|
|
|
|
|
var options = context.ServiceProvider.GetRequiredService<IOptions<TokenCleanupOptions>>().Value;
|
|
|
|
|
|