class Aws::Plugins::BearerAuthorization::Handler
def call(context)
def call(context) if context.http_request.endpoint.scheme != 'https' raise ArgumentError, 'Unable to use bearer authorization on non https endpoint.' end token_provider = context.config.token_provider if token_provider && token_provider.set? context.http_request.headers['Authorization'] = "Bearer #{token_provider.token.token}" else raise Errors::MissingBearerTokenError end @handler.call(context) end