Making provider and credentials an attribute

Violates 2-space-tab coding standard.