Module: Cerca::Models::AuthInjection

Extended by:
Internal::Type::Union
Defined in:
lib/cerca/models/auth_injection.rb

Overview

Where an API key or OAuth access token should be injected into outgoing tool-source requests.

Defined Under Namespace

Classes: HeaderAuthInjection, QueryAuthInjection

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Instance Method Details

#initialize(name:, value: nil, location: :header) ⇒ Object

Some parameter documentations has been truncated, see HeaderAuthInjection for more details.

Parameters:

  • name (String)
  • value (String) (defaults to: nil)

    Optional value template. For OAuth connection auth, use values such as ‘Bearer $

  • location (Symbol, :header) (defaults to: :header)


# File 'lib/cerca/models/auth_injection.rb', line 34