Sha256: 67c5ae16c5229f93de0dfa19dde002e3425b79ce0e8c3e48c199729601c121b8

Contents?: true

Size: 989 Bytes

Versions: 28

Compression:

Stored size: 989 Bytes

Contents

require "gorgon_bunny/authentication/credentials_encoder"

module GorgonBunny
  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

28 entries across 28 versions & 1 rubygems

Version Path
gorgon-0.11.1 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.11.0 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.10.5 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.10.4 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.10.3 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.10.2 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.10.1 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.10.0 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.9.0 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.8.4 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.8.3 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.8.2 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.8.1 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.8.0 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.7.1 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.7.0 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.7.0.rc4 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.7.0.rc3 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.7.0.rc2 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb
gorgon-0.7.0.rc1 lib/gorgon_bunny/lib/gorgon_bunny/authentication/external_mechanism_encoder.rb