Making provider and credentials an attribute

Yes, I am assuming the same original code, and then making it able to be wrapped.