Use agent#credential to locate the user credential