From 050da829d3fa3699a01a89c14424d4e544b2559c Mon Sep 17 00:00:00 2001 From: Juan Pablo Risso Date: Thu, 25 Feb 2016 10:02:06 -0500 Subject: [PATCH] callbackUrl naming conflict --- .../logitech-harmony-connect.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy b/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy index 9fc1a5d..5cdfdff 100644 --- a/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy +++ b/smartapps/smartthings/logitech-harmony-connect.src/logitech-harmony-connect.groovy @@ -89,7 +89,7 @@ mappings { } def getServerUrl() { return "https://graph.api.smartthings.com" } -def getCallbackUrl() { "https://graph.api.smartthings.com/oauth/callback" } +def getServercallbackUrl() { "https://graph.api.smartthings.com/oauth/callback" } def getBuildRedirectUrl() { "${serverUrl}/oauth/initialize?appId=${app.id}&access_token=${state.accessToken}&apiServerUrl=${apiServerUrl}" } def authPage() { @@ -166,7 +166,7 @@ def callback() { def init() { log.debug "Requesting Code" - def oauthParams = [client_id: "${appSettings.clientId}", scope: "remote", response_type: "code", redirect_uri: "${callbackUrl}" ] + def oauthParams = [client_id: "${appSettings.clientId}", scope: "remote", response_type: "code", redirect_uri: "${servercallbackUrl}" ] redirect(location: "https://home.myharmony.com/oauth2/authorize?${toQueryString(oauthParams)}") }