😎修复openapi模式token版本号问题
This commit is contained in:
parent
5a88f573fd
commit
08e8cf788a
@ -185,8 +185,8 @@ public class SysOpenAccessService : IDynamicApiController, ITransient
|
||||
var openAccess = openAccessService.GetByKey(context.AccessKey).GetAwaiter().GetResult();
|
||||
var identity = ((ClaimsIdentity)context.Principal!.Identity!);
|
||||
|
||||
identity.AddClaims(new[]
|
||||
{
|
||||
identity.AddClaims(
|
||||
[
|
||||
new Claim(ClaimConst.UserId, openAccess.BindUserId + ""),
|
||||
new Claim(ClaimConst.TenantId, openAccess.BindTenantId + ""),
|
||||
new Claim(ClaimConst.Account, openAccess.BindUser.Account + ""),
|
||||
@ -194,8 +194,9 @@ public class SysOpenAccessService : IDynamicApiController, ITransient
|
||||
new Claim(ClaimConst.AccountType, ((int)openAccess.BindUser.AccountType).ToString()),
|
||||
new Claim(ClaimConst.OrgId, openAccess.BindUser.OrgId + ""),
|
||||
new Claim(ClaimConst.OrgName, openAccess.BindUser.SysOrg?.Name + ""),
|
||||
new Claim(ClaimConst.OrgType, openAccess.BindUser.SysOrg?.Type + ""),
|
||||
});
|
||||
new Claim(ClaimConst.OrgType, openAccess.BindUser.SysOrg?.Type + ""),
|
||||
new Claim(ClaimConst.TokenVersion, openAccess.BindUser.TokenVersion + ""),
|
||||
]);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user