Sha256: d6c8f092985320e6fa563c3c21fb696bd3c89df05d17362cf8cec33892f1ea50

Contents?: true

Size: 388 Bytes

Versions: 18

Compression:

Stored size: 388 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
actioncable-5.1.7 lib/action_cable/connection/authorization.rb
actioncable-5.1.7.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.1.6.2 lib/action_cable/connection/authorization.rb
actioncable-5.1.6.1 lib/action_cable/connection/authorization.rb
actioncable-5.1.6 lib/action_cable/connection/authorization.rb
actioncable-5.1.5 lib/action_cable/connection/authorization.rb
actioncable-5.1.5.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.1.4 lib/action_cable/connection/authorization.rb
actioncable-5.1.4.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.1.3 lib/action_cable/connection/authorization.rb
actioncable-5.1.3.rc3 lib/action_cable/connection/authorization.rb
actioncable-5.1.3.rc2 lib/action_cable/connection/authorization.rb
actioncable-5.1.3.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.1.2 lib/action_cable/connection/authorization.rb
actioncable-5.1.2.rc1 lib/action_cable/connection/authorization.rb
actioncable-5.1.1 lib/action_cable/connection/authorization.rb
actioncable-5.1.0 lib/action_cable/connection/authorization.rb
actioncable-5.1.0.rc2 lib/action_cable/connection/authorization.rb