Class: Aws::BedrockRuntime::Plugins::BearerAuthorization::Handler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::BedrockRuntime::Plugins::BearerAuthorization::Handler
- Defined in:
- lib/aws-sdk-bedrockruntime/plugins/bearer_authorization.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call(context) ⇒ Object private
Instance Method Details
#call(context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 |
# File 'lib/aws-sdk-bedrockruntime/plugins/bearer_authorization.rb', line 16 def call(context) # This also sets the preferred auth scheme even if the code token has precedence. context[:auth_scheme] = { 'name' => 'bearer' } if ENV['AWS_BEARER_TOKEN_BEDROCK'] @handler.call(context) end |