15

So I'm using the iOS Mobile SDK. I had an app working without issue, then changed the Consumer key to that of a different connected app (i.e. changed away from the default sample one) and updated the success URL as well.

Ever since then I've receieved this error when trying to sign in. I've killed all sessions, I've updated and saved that connected app, I've deleted the app, cleaned and rebuilt, and still no joy.

Anyone have any ideas? This message couldn't be any less useful.

WTAF

  • Not putting this as an asnwer because it's not an answer, but I created a new iOS app with the same key and callback URL and it worked. Then I tried the first app, and it worked also. Who knows. – Matt Lacey Nov 20 '15 at 2:31
  • Did you get any other ideas on this? I am getting the same, I have recreated the app 3 times and checked all elements, and still this error. I am just following the trailhead, so a bit frustrating. – dacology Dec 2 '15 at 22:05
10

After much trial and error. I think this may be due to simple mis-configuration of the Connected App.

Check the Scopes closely. For my trailhead app I needed the api, web, refresh_token scopes. I had omitted one of these. Obviously the scopes required will vary for the app, but at a minimum we need these 3.

oauth scopes

Scope parameter docs: https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_scopes.htm&language=en_US

  • 1
    For me, it started to work once I added api and refresh_token scopes to the connected app. – DCBoy Feb 27 '16 at 18:36
  • I was able to get it working when adding the basic info scope in addition to the ones mentioned above... interesting enough, it didn't work when I added "Full". – Brad Bumbalough Jan 9 '17 at 21:36
  • @Matthew - Are you running the tomcat on 8080 or 8443 ? Unfortunately this solution not working for me. Could you please share the code? – user4567570 Oct 14 '17 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.