User gets an Invalid Grant error trying to generate a token - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

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.