Sha256: 46c9d4407ef14f3f1ef828c361b07774c91c9d48e84ebb40e8d3e048da991cb0

Contents?: true

Size: 976 Bytes

Versions: 126

Compression:

Stored size: 976 Bytes

Contents

require "bunny/authentication/credentials_encoder"

module Bunny
  module Authentication
    # Encodes credentials using the EXTERNAL mechanism
    class ExternalMechanismEncoder < CredentialsEncoder

      auth_mechanism "EXTERNAL", "external"

      # Encodes a username and password for the EXTERNAL mechanism. Since
      # authentication is handled by an encapsulating protocol like SSL or
      # UNIX domain sockets, EXTERNAL doesn't pass along any username or
      # password information at all and this method always returns the
      # empty string.
      #
      # @param [String] username The username to encode. This parameter is
      #   ignored.
      # @param [String] password The password to encode. This parameter is
      #   ignored.
      # @return [String] The username and password, encoded for the
      #   EXTERNAL mechanism. This is always the empty string.
      def encode_credentials(username, password)
        ""
      end
    end
  end
end

Version data entries

126 entries across 126 versions & 2 rubygems

Version Path
bunny-1.0.0.rc1 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.7 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.6 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-1.0.0.pre6 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.5 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-1.0.0.pre5 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.4 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.3 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-1.0.0.pre4 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.2 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.1 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.10.0 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-1.0.0.pre3 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.8 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-1.0.0.pre2 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.7 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.6 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.5 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.4 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-1.0.0.pre1 lib/bunny/authentication/external_mechanism_encoder.rb