mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
Update qbo_controller.rb
This commit is contained in:
1 parent
19a6180e15
commit
93db447239
1 file changed
+1
-1
@@ -46,7 +46,7 @@ class QboController < ApplicationController
|
||||
def oauth_callback
|
||||
if params[:state].present?
|
||||
# use the state value to retrieve from your backend any information you need to identify the customer in your system
|
||||
redirect_uri = quickbooks_oauth_callback_url
|
||||
redirect_uri = qbo_oauth_callback_url
|
||||
if resp = oauth2_client.auth_code.get_token(params[:code], redirect_uri: redirect_uri)
|
||||
# save your tokens here. For example:
|
||||
# quickbooks_credentials.update_attributes(access_token: resp.token, refresh_token: resp.refresh_token,
|
||||
|
||||
Reference in new issue
Block a user