Under some conditions the Salesforce app's OAuth consumer secret can be alphanumeric, but the form validator checks to make sure the provided value is_numeric().

Patch forthcoming.

Comments

acrosman created an issue. See original summary.

acrosman’s picture

Assigned: acrosman » Unassigned
StatusFileSize
new565 bytes

Patch removing is_numeric just checks existence.

acrosman’s picture

Status: Active » Needs review

  • aaronbauman committed 9321d72 on 8.x-3.x authored by acrosman
    Issue #3024372 by acrosman: Managed Apps can generate alphanumeric...
aaronbauman’s picture

Status: Needs review » Fixed

Thanks for the patch!

armyguyinfl’s picture

I came across the same issue today on the newer instances of Salesforce.
The input would now only allow numeric values but now with the provided patch the values could still be invalid inputs.
I think the following patch is a better solution to allow legacy consumer secret keys and the new generated consumer keys by Salesforce

armyguyinfl’s picture

aaronbauman’s picture

I can't find anything from Salesforce that spells out what a valid consumer key looks like, so it doesn't seem worth trying to guess at all the possibilities.

If you can find some docs from Salesforce that spec out the validation criteria, then we can implement some more robust validation.
Otherwise I think it's best to just make sure it's not empty.

Status: Fixed » Closed (fixed)

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