Class: Anthropic::Models::Organization::Federation::IssuerCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/organization/federation/issuer_create_params.rb,
sig/anthropic/models/organization/federation/issuer_create_params.rbs

Overview

See Also:

  • Anthropic::Resources::Organization::Federation::Issuers#create

Defined Under Namespace

Modules: JWKS

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(issuer_url:, name:, check_jti: nil, jwks: nil, max_jwt_lifetime_seconds: nil, request_options: {}) ⇒ IssuerCreateParams

Some parameter documentations has been truncated, see Anthropic::Models::Organization::Federation::IssuerCreateParams for more details.

Parameters:

  • The iss claim value to match against.

  • Slug identifier (lowercase, digits, hyphens). Unique within the organization; a

  • (defaults to: nil)

    Whether the jwt-bearer exchange enforces JTI single-use (replay protection) for

  • (defaults to: nil)

    How signing keys are obtained. Defaults to OIDC discovery.

  • (defaults to: nil)

    Maximum allowed iat→exp spread for assertions from this issuer (1-176400 seconds

  • (defaults to: {})
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: nil)
  • (defaults to: {})


# File 'lib/anthropic/models/organization/federation/issuer_create_params.rb', line 47

Instance Attribute Details

#check_jti ⇒ Boolean?

Whether the jwt-bearer exchange enforces JTI single-use (replay protection) for tokens from this issuer. Defaults to true. Applies only to assertions carrying a jti claim; tokens without one are accepted without single-use enforcement.

Parameters:

Returns:



31
# File 'lib/anthropic/models/organization/federation/issuer_create_params.rb', line 31

optional :check_jti, Anthropic::Internal::Type::Boolean, nil?: true

#issuer_url ⇒ String

The iss claim value to match against.

Parameters:

Returns:



16
# File 'lib/anthropic/models/organization/federation/issuer_create_params.rb', line 16

required :issuer_url, String

#jwks ⇒ Anthropic::Models::Organization::Federation::JWKSDiscovery, ...

How signing keys are obtained. Defaults to OIDC discovery.

Parameters:

Returns:



37
# File 'lib/anthropic/models/organization/federation/issuer_create_params.rb', line 37

optional :jwks, union: -> { Anthropic::Organization::Federation::IssuerCreateParams::JWKS }

#max_jwt_lifetime_seconds ⇒ Integer?

Maximum allowed iat→exp spread for assertions from this issuer (1-176400 seconds, i.e. up to 49h). Defaults to 3600 (1h). Assertions must carry both iat and exp; a missing iat is rejected.

Parameters:

Returns:



45
# File 'lib/anthropic/models/organization/federation/issuer_create_params.rb', line 45

optional :max_jwt_lifetime_seconds, Integer, nil?: true

#name ⇒ String

Slug identifier (lowercase, digits, hyphens). Unique within the organization; a duplicate name returns 409.

Parameters:

Returns:



23
# File 'lib/anthropic/models/organization/federation/issuer_create_params.rb', line 23

required :name, String

Instance Method Details

#to_hash ⇒ { issuer_url: String, name: String, check_jti: bool?, jwks: Anthropic::Models::Organization::Federation::IssuerCreateParams::jwks, max_jwt_lifetime_seconds: Integer?, request_options: Anthropic::RequestOptions }

Returns:



42
43
44
45
46
47
48
49
# File 'sig/anthropic/models/organization/federation/issuer_create_params.rbs', line 42

def to_hash: -> {
  issuer_url: String,
  name: String,
  check_jti: bool?,
  jwks: Anthropic::Models::Organization::Federation::IssuerCreateParams::jwks,
  max_jwt_lifetime_seconds: Integer?,
  request_options: Anthropic::RequestOptions
}