Refactor nfaas provider to use credential manager