How to configure credentials?