Table of Contents

Class ClaimClaims

Namespace
KernLab.Claim.Protocol
Assembly
KernLab.Claim.Protocol.dll

Claims 字段名常量——家族身份契约 v0(token-contract-v0 §2)claims 最小集。 未注册字段消费方必须忽略(前向兼容纪律,JWT 生态惯例)。

public static class ClaimClaims
Inheritance
ClaimClaims
Inherited Members

Fields

Aud

目标消费方(OAuth2 client_id;节点面 = 产品名如 "kernlab.cohort")。

public const string Aud = "aud"

Field Value

string

Env

环境(空串 = 缺省环境;对齐 env 段)。

public const string Env = "env"

Field Value

string

Exp

过期时间(Unix 秒)。

public const string Exp = "exp"

Field Value

string

Iat

签发时间(Unix 秒)。

public const string Iat = "iat"

Field Value

string

Iss

签发者(Claim 集群 Id;本地档 = "local")。

public const string Iss = "iss"

Field Value

string

Jti

唯一 Id(审计关联 / 撤销锚点)。

public const string Jti = "jti"

Field Value

string

Nbf

生效时间(Unix 秒)。

public const string Nbf = "nbf"

Field Value

string

Rol

角色(Claim 管理面用,消费方不解释)。

public const string Rol = "rol"

Field Value

string

Scp

scope 集合(空格分隔,OAuth2 惯例)。

public const string Scp = "scp"

Field Value

string

Sub

主体 Id(用户名 / 服务账号名 / 节点名)。

public const string Sub = "sub"

Field Value

string

Ten

租户(空串 = 缺省租户;对齐 Cohort 键布局 tenant 段)。

public const string Ten = "ten"

Field Value

string

Typ

token 类型:TokenTypes 三值。

public const string Typ = "typ"

Field Value

string