RUBY-577: Add support for delegated authentication