Add configuration option for federated credentials

Thanks for the gem! It'd be useful if it could be extended to add support for using credentials for a federated user. I will attach a pull request shortly.