aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/connection/authorization.rb
blob: 070a70e4e2a858c2fabdf1d089a1fb5c539ccc6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActionCable
  module Connection
    module Authorization
      class UnauthorizedError < StandardError; end

      private
        def reject_unauthorized_connection
          logger.error "An unauthorized connection attempt was rejected"
          raise UnauthorizedError
        end
    end
  end
end