Skip to content

ContextProvider

Source code in docs_src/capo_iam/types/context_provider.py
class ContextProvider(TypedDict, closed=True):
    key_definition_list: NotRequired[
        "capo_iam.types.key_definition_list_type.keyDefinitionListType"
    ]
    """<p>A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.</p>"""
    subject_source_key: (
        "capo_iam.types.context_provider_source_key_type.contextProviderSourceKeyType"
    )
    """<p>The source key that is used to derive the subject for the injected trusted context. This value identifies the claim or attribute in the external identity provider's assertion or token that supplies the subject.</p> <p>The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters: <code>_ . : / = + - @ #</code>. It can't start or end with a space or contain two spaces in a row.</p>"""
    subject_type_value: NotRequired[
        "capo_iam.types.subject_type_value_type.subjectTypeValueType"
    ]
    """<p>A static value for the subject type, such as <code>user</code> or <code>workload</code>.</p> <p>This parameter is optional and is mutually exclusive with <code>SubjectTypeSourceKey</code>. Specify either <code>SubjectTypeValue</code> or <code>SubjectTypeSourceKey</code>, but not both.</p>"""
    subject_type_source_key: NotRequired[
        "capo_iam.types.context_provider_source_key_type.contextProviderSourceKeyType"
    ]
    """<p>The source key that supplies the subject type from the external identity provider's assertion or token.</p> <p>The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters: <code>_ . : / = + - @ #</code>. It can't start or end with a space or contain two spaces in a row.</p> <p>This parameter is mutually exclusive with <code>SubjectTypeValue</code>. Specify either <code>SubjectTypeSourceKey</code> or <code>SubjectTypeValue</code>, but not both.</p>"""

key_definition_list instance-attribute

key_definition_list: NotRequired[keyDefinitionListType]

A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.

subject_source_key instance-attribute

subject_source_key: contextProviderSourceKeyType

The source key that is used to derive the subject for the injected trusted context. This value identifies the claim or attribute in the external identity provider's assertion or token that supplies the subject.

The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters: _ . : / = + - @ #. It can't start or end with a space or contain two spaces in a row.

subject_type_source_key instance-attribute

subject_type_source_key: NotRequired[contextProviderSourceKeyType]

The source key that supplies the subject type from the external identity provider's assertion or token.

The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters: _ . : / = + - @ #. It can't start or end with a space or contain two spaces in a row.

This parameter is mutually exclusive with SubjectTypeValue. Specify either SubjectTypeSourceKey or SubjectTypeValue, but not both.

subject_type_value instance-attribute

subject_type_value: NotRequired[subjectTypeValueType]

A static value for the subject type, such as user or workload.

This parameter is optional and is mutually exclusive with SubjectTypeSourceKey. Specify either SubjectTypeValue or SubjectTypeSourceKey, but not both.