Problem
You get an Invalid Scope error when generating a token.
Solution
An OAuth client must specify a valid scope as part of token generation. In SmartPlant Foundation version 2016 (6.0), the correct value was SPF. In later versions, the correct scope value to use is ingr.api.
These values are case sensitive. You can check what scopes are configured by logging
in to the Authorization Server and viewing the configured scopes.
You can see further details of this error by turning on logging.