Skip to content

JwtAdditionalClaim

Source code in docs_src/capo_api_gateway/types/jwt_additional_claim.py
class JwtAdditionalClaim(TypedDict, closed=True):
    claim_name: "capo_api_gateway.types.string.String"
    """<p>The name of the claim to check. The value cannot be empty and cannot be <code>iss</code>, <code>aud</code>, <code>exp</code>, <code>nbf</code>, <code>iat</code>, <code>scope</code>, or <code>scp</code>.</p>"""
    format: "capo_api_gateway.types.jwt_claim_format.JwtClaimFormat"
    """<p>The format of the claim value. The only valid value is <code>SINGLE_STRING</code>.</p>"""
    required: "capo_api_gateway.types.boolean.Boolean"
    """<p>Specifies whether the claim must be present in the token. Defaults to <code>false</code>. When <code>true</code>, the token must contain the claim.</p>"""
    expected_values: NotRequired["capo_api_gateway.types.list_of_string.ListOfString"]
    """<p>The accepted value for the claim. The value cannot be empty. When a value is specified, the claim must match it exactly, and the match is case-sensitive. When no value is specified, the claim only has to be present.</p>"""

claim_name instance-attribute

claim_name: String

The name of the claim to check. The value cannot be empty and cannot be iss, aud, exp, nbf, iat, scope, or scp.

expected_values instance-attribute

expected_values: NotRequired[ListOfString]

The accepted value for the claim. The value cannot be empty. When a value is specified, the claim must match it exactly, and the match is case-sensitive. When no value is specified, the claim only has to be present.

format instance-attribute

The format of the claim value. The only valid value is SINGLE_STRING.

required instance-attribute

required: Boolean

Specifies whether the claim must be present in the token. Defaults to false. When true, the token must contain the claim.