The authentication service generates a user token for a given scope.
Example
The example below shows how to generate a user token.
# <CORE_HOST> FlowerDocs Core base URL
curl -X POST "<CORE_HOST>/rest/authentication" \
-H "Content-Type: application/json" \
-d '{
"password": "pwd",
"scope": "TEST",
"user": "user"
}'
@Autowired
private Authenticator authenticator;
public void authenticateToScope(String scopeId) throws TechnicalException, FunctionalException
{
authenticator.authenticate(scopeId);
}