use simplier credential.helper setup and make it adapter safe