From b3f109392c0dc49b00671bd98aba99299d7c58f8 Mon Sep 17 00:00:00 2001 From: Marcel Santos Date: Tue, 26 Mar 2024 14:56:32 -0600 Subject: [PATCH] Remove debug statements from authorization --- app/controllers/authenticating_controller.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/controllers/authenticating_controller.rb b/app/controllers/authenticating_controller.rb index 0bbaf08..302a00a 100644 --- a/app/controllers/authenticating_controller.rb +++ b/app/controllers/authenticating_controller.rb @@ -10,7 +10,6 @@ def heroku_app dev_app else match = request.host.match(/(.*)\-.+\.herokuapp\.com$/) - unless match raise 'Could not determine heroku app from host' end @@ -21,22 +20,14 @@ def heroku_app def authenticate_user! auth_header = request.authorization - puts "Authorization header.xx #{}" if auth_header token = auth_header.match(/Bearer (.*)$/)[1] heroku_api = PlatformAPI.connect_oauth(token) heroku_api.app.info(heroku_app) elsif session && session['token'] && session['email'] - puts "cookies..xx #{cookies}" session = cookies.encrypted[:_session_id] - puts "session..xx #{session}" heroku_api = PlatformAPI.connect_oauth(session['token']) - puts "heroku api client #{heroku_api}" - puts "heroku app #{heroku_app}" - puts "app info without suffix #{heroku_api.app.info('webhooks-demo-marcel-4')}" heroku_api.app.info(heroku_app) - puts "app info with suffix #{heroku_api.app.info(heroku_app)}" - session['email'] end