User gets an Invalid Grant error trying to generate a token - HxGN SDx2 - November 2024 - Troubleshooting - Hexagon

HxGN SDx2 Troubleshooting

Language
English
Product
HxGN SDx2
Search by Category
Troubleshooting

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.

SHARED Tip You can see further details of this error by turning on logging.