I’m trying to use Field Kit (via https://farmos.app) to log in to my farmOS 3.0.0-beta3 instance. After clicking “Submit credentials”, I get a “Request failed with status code 400” error.
Using the Chrome devconsole, I can see that it’s doing a POST to https://my.farmos.instance/oauth/token and getting this as a response:
{
"error": "invalid_scope",
"error_description": "The requested scope is invalid, unknown, or malformed",
"hint": "Check the `farm_manager` scope",
"message": "The requested scope is invalid, unknown, or malformed"
}
I know that the credentials are correct because when I intentionally enter them wrong, the response is this instead:
{
"error": "invalid_grant",
"error_description": "The user credentials were incorrect.",
"message": "The user credentials were incorrect."
}
Looking at the farmOS recent log messages report, the error is:
League\OAuth2\Server\Exception\OAuthServerException: The requested scope is invalid, unknown, or malformed in League\OAuth2\Server\Exception\OAuthServerException::invalidScope() (line 182 of /opt/drupal/vendor/league/oauth2-server/src/Exception/OAuthServerException.php).
I can see that there is a farm_manager scope defined at Administration/Configuration/People/Simple OAuth Settings/Scopes, so I’m not sure what to do now.
What am I missing?