unconfuse OAuth::Helper references

refs FOO-2529
flag=none

TEST PLAN:
  1) sentry error goes away

Change-Id: I32305a316832fa21bd1edb8550cba309a3222c35
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276823
Reviewed-by: Ben Rinaca <brinaca@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
This commit is contained in:
Ethan Vizitei 2021-10-26 10:57:23 -05:00 committed by Simon Williams
parent eec5d783e4
commit 8aafc7d464
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ module Canvas
# if we have an oauth1 header lets get the appropriate info from it
if req.authorization && req.authorization.match(/^OAuth/)
headers.merge!(OAuth::Helper.parse_header(req.authorization))
headers.merge!(::OAuth::Helper.parse_header(req.authorization))
end
headers

View File

@ -38,11 +38,11 @@ module Lti
end
def oauth_consumer_key
@oauth_consumer_key ||= OAuth::Helper.parse_header(request.authorization)['oauth_consumer_key']
@oauth_consumer_key ||= ::OAuth::Helper.parse_header(request.authorization)['oauth_consumer_key']
end
def authenticate_body_hash
if (body_hash = OAuth::Helper.parse_header(request.authorization)['oauth_body_hash'])
if (body_hash = ::OAuth::Helper.parse_header(request.authorization)['oauth_body_hash'])
request.body.rewind
generated_hash = Digest::SHA1.base64digest(request.body.read)
request.body.rewind # Be Kind Rewind