fix ClassCast exceptions in PICLRepoSession
use getAuthToken() to get a kA