User gets an Invalid Grant error trying to generate a token - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

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.