RUBY-577 add support for delegated authentication