Making provider and credentials an attribute

sorry...the perl in me :)