Sha256: 631e2e5b1d83564a2fd6ad35f1ce7dd8667beaf175836a88c328fdc383737726

Contents?: true

Size: 1.07 KB

Versions: 14

Compression:

Stored size: 1.07 KB

Contents

# Copyright 2023 Google, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "faraday"

module Google
  # Module Auth provides classes that provide Google-specific authorization
  # used to access Google APIs.
  module Auth
    # Helpers provides utility methods for Google::Auth.
    module Helpers
      # Connection provides a Faraday connection for use with Google::Auth.
      module Connection
        module_function

        attr_accessor :default_connection

        def connection
          @default_connection || Faraday.default_connection
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
googleauth-1.11.2 lib/googleauth/helpers/connection.rb
googleauth-1.11.1 lib/googleauth/helpers/connection.rb
googleauth-1.11.0 lib/googleauth/helpers/connection.rb
googleauth-1.10.0 lib/googleauth/helpers/connection.rb
googleauth-1.9.2 lib/googleauth/helpers/connection.rb
googleauth-1.9.1 lib/googleauth/helpers/connection.rb
googleauth-1.8.1 lib/googleauth/helpers/connection.rb
googleauth-1.8.0 lib/googleauth/helpers/connection.rb
googleauth-1.7.0 lib/googleauth/helpers/connection.rb
googleauth-1.6.0 lib/googleauth/helpers/connection.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/googleauth-1.5.2/lib/googleauth/helpers/connection.rb
googleauth-1.5.2 lib/googleauth/helpers/connection.rb
googleauth-1.5.1 lib/googleauth/helpers/connection.rb
googleauth-1.5.0 lib/googleauth/helpers/connection.rb