摘要:
1.注册策略、使用Claim services.AddAuthorization(options => { options.AddPolicy("AlbumEdit", policy => { policy.RequireClaim("AlbumEditClaim"); }); }); [Autho 阅读全文
摘要:
StartUp.cs using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identit 阅读全文