Fixed issue regarding the Auth Adapters using config as array instead of object.

Fixed issue regarding the Auth Adapters using config as array instead of object. Now the user can use both depending on how they've set up their website.