Sha256: b19211f110f265d8251392c7c91218e2b42bbc03cda079b2744fcf0e48503d40

Contents?: true

Size: 418 Bytes

Versions: 114

Compression:

Stored size: 418 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

114 entries across 110 versions & 9 rubygems

Version Path
actioncable-7.0.8.7 lib/action_cable/connection/authorization.rb
actioncable-7.0.8.6 lib/action_cable/connection/authorization.rb
actioncable-6.1.7.10 lib/action_cable/connection/authorization.rb
actioncable-6.1.7.9 lib/action_cable/connection/authorization.rb
actioncable-7.0.8.5 lib/action_cable/connection/authorization.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actioncable-7.0.8.4/lib/action_cable/connection/authorization.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actioncable-7.0.5.1/lib/action_cable/connection/authorization.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actioncable-7.0.5.1/lib/action_cable/connection/authorization.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actioncable-7.0.5.1/lib/action_cable/connection/authorization.rb
actioncable-7.0.8.4 lib/action_cable/connection/authorization.rb
actioncable-6.1.7.8 lib/action_cable/connection/authorization.rb
actioncable-7.0.8.1 lib/action_cable/connection/authorization.rb
actioncable-6.1.7.7 lib/action_cable/connection/authorization.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-7.0.3.1/lib/action_cable/connection/authorization.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-7.0.2.3/lib/action_cable/connection/authorization.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actioncable-6.1.6.1/lib/action_cable/connection/authorization.rb
actioncable-7.0.8 lib/action_cable/connection/authorization.rb
actioncable-7.0.7.2 lib/action_cable/connection/authorization.rb
actioncable-6.1.7.6 lib/action_cable/connection/authorization.rb
actioncable-7.0.7.1 lib/action_cable/connection/authorization.rb