Invalid_request, unauthorized error from social connections

Problem Statement

Users can’t log in via our Google connection (social or enterprise). We got the following error returned to the callback after a seemingly successful login via a Google connection (social or enterprise):

  • error invalid_request
  • error_description Unauthorized

Solution

No interruptions or errors are thrown during the entire login process, including authenticating at Google. The error was raised after the callback to the application. The cause of the error is the client secret is not properly configured, so please fix the client-secret.