Skip to content

Commit 2eacfc1

Browse files
authored
Merge pull request #34 from RadiusNetworks/tmp-drop-deprecation
Temporarily drop deprecation notice
2 parents 04ad8e4 + 0b81328 commit 2eacfc1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/kracken/controllers/token_authenticatable.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@ def current_user_id
148148
# transfer the knowledge about also checking for the params.
149149
def munge_header_auth_token!
150150
return unless params[:token]
151-
deprecation = ActiveSupport::Deprecation.new("1.0", "kracken")
152-
deprecation.behavior = ActiveSupport::Deprecation.behavior
153-
deprecation.silenced = ActiveSupport::Deprecation.silenced
154-
controller_action = "#{request.controller_class}#" \
155-
"#{request.path_parameters[:action] || :index}"
156-
deprecation.warn "[#{controller_action}][kracken] Passing auth " \
157-
"tokens as query parameters is deprecated. This is insecure and " \
158-
"will be removed in a future version of Kracken. Use the " \
159-
"'Authorization' header instead."
160151
request.env['HTTP_AUTHORIZATION'] = "Token token=\"#{params[:token]}\""
161152
end
162153

0 commit comments

Comments
 (0)