Exception: Keycardai::OAuth::WorkloadIdentityConfigurationError

Inherits:
ConfigurationError show all
Defined in:
lib/keycardai/oauth/errors.rb

Overview

A workload-identity source is misconfigured at construction: missing token file, no discovery env var set, missing required audience. Carries the source identifier (file, gcp-metadata, fly, custom).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source:) ⇒ WorkloadIdentityConfigurationError

Returns a new instance of WorkloadIdentityConfigurationError.



121
122
123
124
# File 'lib/keycardai/oauth/errors.rb', line 121

def initialize(message, source:)
  super(message)
  @source = source
end

Instance Attribute Details

#sourceString (readonly)

Returns:

  • (String)


119
120
121
# File 'lib/keycardai/oauth/errors.rb', line 119

def source
  @source
end