You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.0 KiB
3.0 KiB
LINGYUN.Abp.OpenIddict.Application.Contracts
Introduction
LINGYUN.Abp.OpenIddict.Application.Contracts is the contract layer for OpenIddict application services, defining the interfaces, DTOs, and permissions required for OpenIddict management.
Features
-
Define OpenIddict Application Service Interfaces
- IOpenIddictApplicationAppService
- IOpenIddictAuthorizationAppService
- IOpenIddictTokenAppService
- IOpenIddictScopeAppService
-
Provide Standardized DTOs
- OpenIddictApplicationDto
- OpenIddictAuthorizationDto
- OpenIddictTokenDto
- OpenIddictScopeDto
- And corresponding Create and Update DTOs
-
Permission Definitions
- OpenIddict.Applications
- OpenIddict.Authorizations
- OpenIddict.Tokens
- OpenIddict.Scopes
-
Multilingual Support
- Built-in Chinese and English localization resources
- Support for custom language extensions
Installation
dotnet add package LINGYUN.Abp.OpenIddict.Application.Contracts
Usage
-
Add
[DependsOn(typeof(AbpOpenIddictApplicationContractsModule))]to your module class. -
Inject and use the corresponding application service interfaces:
public class YourService
{
private readonly IOpenIddictApplicationAppService _applicationAppService;
public YourService(IOpenIddictApplicationAppService applicationAppService)
{
_applicationAppService = applicationAppService;
}
public async Task DoSomethingAsync()
{
var applications = await _applicationAppService.GetListAsync(
new OpenIddictApplicationGetListInput());
// ...
}
}
Permissions
The module defines the following permissions:
- OpenIddict.Applications
- OpenIddict.Applications.Create
- OpenIddict.Applications.Update
- OpenIddict.Applications.Delete
- OpenIddict.Applications.ManagePermissions
- OpenIddict.Applications.ManageSecret
- OpenIddict.Authorizations
- OpenIddict.Authorizations.Delete
- OpenIddict.Scopes
- OpenIddict.Scopes.Create
- OpenIddict.Scopes.Update
- OpenIddict.Scopes.Delete
- OpenIddict.Tokens
- OpenIddict.Tokens.Delete
Localization
The module supports multiple languages with built-in support for:
- English (en)
- Simplified Chinese (zh-Hans)
You can extend new languages as follows:
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Get<AbpOpenIddictResource>()
.AddVirtualJson("/YourPath/Localization/Resources");
});