Problem
You receive an Invalid Grant error message upon a token request.
Solution
You can get an Invalid Grant error message for many reasons. The most common of which are:
-
The user does not have a password configured. Any user who wants to generate a token using OAuth must have a password set. OAuth does not work without a set password.
-
The user record does not exist in the database.
-
The user record in the database is disabled.
You can see further details of this error by turning on logging.