Problem/Motivation

The help text explaining how to authenticate this module with Salesforce makes some assumptions which are not always valid. Namely that:

  • Clean URLs is enabled
  • Drupal "lives" in the root of the web server

The attached patch was originally included with another issue as a suggested workaround. I'm adding it here so that it can be separated from the other questions in that issue.

Proposed resolution

The attached patch uses the drupal url() function to generate the callback URL in the help text. As this is the same code that generates the actual callback URL in the authentication code, it should guarantee that the two always match.

Remaining tasks

  • Roll the patch
  • Review the patch
  • Apply it to GIT

User interface changes

The help text will remain in sync with the actual callback URL

API changes

None

CommentFileSizeAuthor
authurl-2127251.patch1.62 KBdbcollies

Comments

  • gcb committed 60bb9d4 on 7.x-3.x authored by dbcollies
    #2297259: Authorization callback URL is not always correct in help text
    
gcb’s picture

Status: Needs review » Fixed

Well that seems like a good idea. Patch committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.