I'm trying to get the username and password of the currently authenticated user in an Activiti Groovy Script Task. I'm currently using this code:
import org.activiti.engine.impl.identity.Authentication;
out.println("Auth: " + Authentication.getName());
out.println("Auth: " + Authentication.getCredentials().toString());
But it treats Authentication as the class, so getName() returns org.activiti.engine.impl.identity.Authentication and getCredentials() fails to run. I tried using authentication.getName() but that results in a 'No such property: authentication for class...' error.
Any ideas for how I can get this to work?