function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vleandro09vleandro09 

HTTP Status 401: Authentication Failed: OAuth login invalid or expired access token

I'm working with the Force.com Integration Workbook.  Everything is fine until I get to Tutorial #3! 

 

The workbook talks about setting up Remote Access; however Remote Access is no longer available and you're redirected back to App | Connected Apps.  At this point the workbook doesn't match the latest version of Salesforce (Summer 13).

 

Additionally, in Tutorial 3, Step 2, I cannot get the OAuth to work!  I get the error:

 

HTTP Status 401: Authentication Failed: OAuth login invalid or expired access token

 

I've set this up twice and I'm following the steps "exactly" as they are laid out in the workbook.  Was wondering if anyone else has come across this and if I'm simply missing something.  I'm pretty new to the coding side of SFDC; so I'm working through these workbooks to try and get a better understanding!

 

Thank you!

 

ForceDev23ForceDev23

The issue is the permission. Go to apps ( instead of remote access ) and then under the section "oAuth Settings " give full access for "Selected OAuth Scopes" i.e. 

 

Provide access to custom applications (visualforce)
Perform requests on your behalf at any time (refresh_token)
Access your basic information (id)
Provide access to your data via the Web (web)
Access and manage your data (api)
Access and manage your Chatter feed (chatter_api)
Full access (full) 

Along with this under "Supported App Types" section keep "Access Method" as "OAuth Webflow (GET)"

smeridewsmeridew
Select all of the oAuth scopes instead of just "Full Access" ... in case this wasn't clear. The tutorial just says to add "Full Access" scope.
Steve JorgensenSteve Jorgensen
I'm having a similar problem. Working from https://developer.salesforce.com/page/Integrating_Java_Spring_Apps_on_Heroku_with_Force.com_REST_APIs, still running on localhost, it worked fine on the day I set it up, but on the next day, when I try to access http://localhost:8080/people/, I get a "HTTP Status 401 - Authentication Failed: OAuth login invalid or expired access token".
I also deployed to Heroku on that first day, but I had set the wrong values for tyhe environment variables, so I don't know if it would have worked otherwise. In any case, after I fixed that on the next day, I had the same symptom as on localhost that day. I got "HTTP Status 401 - Authentication Failed: OAuth login invalid or expired access token".
Pam Luke 1Pam Luke 1
I am having the same issue. I have followed the steps, except that I do not see a section called "Supported App Types" as indicated in the ForceDev23 post. Any suggestions?
Thanks.
Bruce_DoBruce_Do
I'm facing with this issue. Please help if you had resolved and got solution
Thank you
Tim Morgan 55Tim Morgan 55
I'm seeing the same result as well. Where is this Supported App Types setting?
Arfa Rfa3Arfa Rfa3
Moreover, cutting-edge chainsaws are often equipped with innovative technologies that enhance their performance. For example, some models feature automatic oilers that lubricate the chain during operation, ensuring smooth cutting and extending the lifespan of the chain. Others have easy-start systems that eliminate the hassle of repeatedly pulling a cord to start the engine. best electric chainsaw sharpener (https://cuttingedgechainsaws.com/best-electric-chainsaw-sharpener/)
MartinezMartinez
hi,
This discussion is very helpful for me. If you need more interesting topics like this then click here (https://docs.google.com/spreadsheets/d/16JiczLgCNMyrg8YVCNn6f05QdShWete9YkG4YhBzFeg/edit#gid=0).