mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
87b3e226d6
This reverts commit3420a14590
, reversing changes made toafb66a5a59
.
13 lines
388 B
Ruby
13 lines
388 B
Ruby
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
|