+ Start a Discussion

OAuth login invalid or expired access token

Hello! I'm following Force.com Integration Book and having a problem with OAuth. I've set everything up, I can see my OAUTH_CLIENT_KEY and OAUTH_CLIENT_SECRET on Salesforce. So I set them via the heroku CLI client as the book suggests. The problem is that my client application stopped working, because OAuth refuses to work. I visit https://floating-brushlands-5239.herokuapp.com/orderui then enter my credentials but thereafter I stumble upon the 401 server error (OAuth Token - Expired or InvalidHTTP Status 401 - Authentication Failed: OAuth login invalid or expired access token). Are there any gotchas? I've tried everything, but had no luck. Thanks!


YOu are passing wrong authentication parameters.