Added https

This commit is contained in:
2024-08-19 20:04:09 -04:00
parent 0729d2ac41
commit 5782cbc166

View File

@@ -40,7 +40,7 @@ class QboController < ApplicationController
if params[:state].present? if params[:state].present?
oauth2_client = Qbo.construct_oauth2_client oauth2_client = Qbo.construct_oauth2_client
# use the state value to retrieve from your backend any information you need to identify the customer in your system # use the state value to retrieve from your backend any information you need to identify the customer in your system
redirect_uri = Setting.host_name + qbo_oauth_callback_path redirect_uri = "https://" + Setting.host_name + qbo_oauth_callback_path
if resp = oauth2_client.auth_code.get_token(params[:code], redirect_uri: redirect_uri) if resp = oauth2_client.auth_code.get_token(params[:code], redirect_uri: redirect_uri)
# Remove the last authentication information # Remove the last authentication information