Added log

This commit is contained in:
2024-08-19 19:59:26 -04:00
parent 11dbcaf80c
commit 6c6de0ba86

View File

@@ -26,6 +26,7 @@ class QboController < ApplicationController
# Called when the user requests that Redmine to connect to QBO
#
def authenticate
logger.info "redirect_uri: " + Setting.host_name + qbo_oauth_callback_path
oauth2_client = Qbo.construct_oauth2_client
grant_url = oauth2_client.auth_code.authorize_url(redirect_uri: Setting.host_name + qbo_oauth_callback_path, response_type: "code", state: SecureRandom.hex(12), scope: "com.intuit.quickbooks.accounting")
redirect_to grant_url