本文主要是介绍ABP VNext学习日记11,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.ControllerActionEndpointConventionBuilder Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapControllers(this IEndpointRouteBuilder endpoints)
解析:Adds endpoints for controller actions to the IEndpointRouteBuilder without specifying any routes.
2.Microsoft.AspNetCore.Mvc.JsonResult.JsonResult(object value)
解析:Creates a new JsonResult with the given value.
3.Microsoft.AspNetCore.Mvc.ControllerBase.User
解析:Gets the ClaimsPrincipal for user associated with the executing action.
4.AuthenticationBuilder Microsoft.Extensions.DependencyInjection.JwtBearerExtensions.AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, Action<JwtBearerOptions> configureOptions)
解析:Enables JWT-bearer authentication using the specified scheme. JWT bearer authentication performs authentication by extracting and validating a JWT token from the Authorization request header.
5.Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions.Authority
解析:Gets or sets the Authority to use when making OpenIdConnect calls.
6.Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions.TokenValidationParameters
解析:Gets or sets the parameters used to validate identity tokens. Contains the types and definitions required for validating a token.
7.Task<DiscoveryDocumentResponse> IdentityModel.Client.HttpClientDiscoveryExtensions.GetDiscoveryDocumentAsync(this HttpClient client, string address = null, CancellationToken cancellationToken = default(CancellationToken))
解析:Sends a discovery document request.
8.IdentityModel.Client.ProtocolResponse.Json
解析:Gets the protocol response as JSON (if present).
9.System.Net.Http.HttpClient.HttpClient()
解析:Initializes a new instance of the HttpClient class using a HttpClientHandler that is disposed when this instance is disposed.
10.void IdentityModel.Client.AuthorizationHeaderExtensions.SetBearerToken(this HttpClient client, string token)
解析:Sets an authorization header with a bearer token.
11.IdentityModel.Client.TokenResponse.AccessToken
解析:Gets the access token.
12.AbpSession关键属性
解析:
[1]UserId:当前用户的标识ID,如果没有当前用户则为null,如果需要授权访问则它不可能为空
[2]TenantId:当前租户的标识ID,如果没有当前租户则为null
[3]MultiTenancySide:可能是Host或Tenant
13.领域驱动设计相关概念
解析:
[1]仓储接口[IRepository]:仓储用来操作数据库进行数据存取。仓储接口在领域层定义,而仓储的实现类应该写在基础设施层。
[2]领域服务[Domain service]:当处理的业务规则跨越两个及以上实体时,应该写在领域服务方法里面。
[3]领域事件[Domain Event]:在领域层某些特定情况发生时可以触发领域事件,并且在相应地方捕获并处理它们。
[4]工作单元[Unit of Work]:工作单元是一种设计模式,用于维护一个由已经被修改的业务对象组成的列表,它负责协调这些业务对象的持久化工作及并发问题。
14.IdentityServer4.Models.Client
解析:Models an OpenID Connect or OAuth2 client.
15.IServiceCollection Microsoft.Extensions.DependencyInjection.PolicyServiceCollectionExtensions.AddAuthorization(this IServiceCollection services, Action<AuthorizationOptions> configure)
解析:Adds authorization policy services to the specified IServiceCollection.
16.AuthorizationPolicyBuilder Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder.RequireAuthenticatedUser()
解析:Adds DenyAnonymousAuthorizationRequirement to the current instance which enforces that the current user is authenticated.
17.AuthorizationPolicyBuilder Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder.RequireClaim(string claimType, params string[] allowedValues)
解析:Adds a ClaimsAuthorizationRequirement to the current instance which requires that the current user has the specified claim and that the claim value must be one of the allowed values.
18.void IdentityModel.Client.AuthorizationHeaderExtensions.SetBearerToken(this HttpClient client, string token)
解析:Sets an authorization header with a bearer token.
19.HttpContent System.Net.Http.HttpResponseMessage.Content
解析:获取或设置HTTP响应信息的内容。
20.Newtonsoft.Json.Linq.JArray
解析:表示一个JSON数组。
21.IIS Express
解析:IIS Express是为开发人员优化的轻量级、自包含版本的IIS。
22.IdentityServer4.Test.TestUser
解析:In-memory user object for testing. Not intended for modeling users in production.
23.string IdentityServer4.Test.TestUser.SubjectId
解析:Gets or sets the subject identifier.
24.IIdentityServerBuilder Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensions.AddTestUsers(this IIdentityServerBuilder builder, List<TestUser> users)
解析:增加测试用户。
25.IdentityServer4.Models.Client.AllowedScopes
解析:Specifies the api scopes that the client is allowed to request. If empty, the client can’t access any scope.
这篇关于ABP VNext学习日记11的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!