corrected getClientCredentials