Skip to main content

Jadu Central

The following sections are specifically for troubleshooting OAuth SSO when integrating with Jadu Central.

Checklist

  1. All details in Jadu Connect integration settings are correct in Jadu Central control centre

  2. Site registry entries are correct in Jadu Central system information page

  3. Check Jadu Connect Service API connectivity. Simple check can be performed with: curl -k “https://API_HOST/api/service-api/API_NAME/status?key=API_KEY”

  4. Check proxy settings are correct in Jadu Central control centre (if required)

  5. Check hosts file for any entries relating to Jadu Connect, ensure these have the correct details

  6. SSL_ENABLED constant should be set to true so that the redirect URI generated starts with https://

Diagnostics

If those all check out ok, use the application log to help diagnose the issue:

Ensure that the application log is enabled for Jadu Central:

  1. Edit {JADU_HOME}/config/logs.xml
  2. Find the line for application and set enabled=”true”and level="debug"
  3. Save
  4. Clear config cache

Common log entries

Bad site registry

If the redirect URL given to Jadu Connect does not match with one of those stored against the OAuth client, Jadu Connect will reject the request.

Something similar to this will be logged:

[2017-07-14 12:56:46] application.WARNING: Error returned by Jadu Connect API: Client error response [status code] 400 [reason phrase] Bad Request [url] https://myorg.q.jadu.net/q/oauth/v2/token {"params":{"grant_type":"authorization_code","code":"CODE","redirect_uri":"https://myorg.live.jadu.net/jadu/login/services?serviceType=cxm"}} []
[2017-07-14 12:56:46] application.WARNING: Unable to authenticate {"identity":"IDENTITY","credential":"CREDENTIAL"} []

One possible explanation for this is that the site registry contains the wrong URL for the site.