Sha256: 3d8f0a910a185e01a7c451146612efcd55cea4b3edae8e73ab0bf7cdfc185d26

Contents?: true

Size: 419 Bytes

Versions: 33

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module ActionCable
  module Connection
    module Authorization
      class UnauthorizedError < StandardError; end

      # Closes the \WebSocket connection if it is open and returns a 404 "File not Found" response.
      def reject_unauthorized_connection
        logger.error "An unauthorized connection attempt was rejected"
        raise UnauthorizedError
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
actioncable-5.2.3.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.2.2.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.2 lib/action_cable/connection/authorization.rb
actioncable-5.2.2.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.2.1.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.1.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.2.0 lib/action_cable/connection/authorization.rb
actioncable-5.2.0.rc2 lib/action_cable/connection/authorization.rb
actioncable-5.2.0.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.2.0.beta2 lib/action_cable/connection/authorization.rb
actioncable-5.2.0.beta1 lib/action_cable/connection/authorization.rb
ruby-on-quails-0.1.0 actioncable/lib/action_cable/connection/authorization.rb