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.8.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.8 lib/action_cable/connection/authorization.rb
actioncable-5.2.7.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.7 lib/action_cable/connection/authorization.rb
actioncable-5.2.6.3 lib/action_cable/connection/authorization.rb
actioncable-5.2.6.2 lib/action_cable/connection/authorization.rb
actioncable-5.2.6.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.6 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.6 lib/action_cable/connection/authorization.rb
actioncable-5.2.5 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.5 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.4 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.3 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.2 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.1 lib/action_cable/connection/authorization.rb
actioncable-5.2.4 lib/action_cable/connection/authorization.rb
actioncable-5.2.4.rc1 lib/action_cable/connection/authorization.rb
spiral_form-0.1.1 vendor/bundle/gems/actioncable-5.2.3/lib/action_cable/connection/authorization.rb
spiral_form-0.1.0 vendor/bundle/gems/actioncable-5.2.3/lib/action_cable/connection/authorization.rb
actioncable-5.2.3 lib/action_cable/connection/authorization.rb