Couchbase Lite 2.0 replication SetCookie possible?

In CB Lite 1.5 it is possible to set cookies on the Replication object with SetCookie. Is that also supported in CB Lite 2.0 ?

Background: I am exploring to run Sync Gateway in our corporate network and use Azure AD’s Application Proxy to expose it on the Internet. This would give me Azure AD authentication, but it means the replicator on the mobile device would have to send cookies to Azure.

There is no direct API to do it from the Cookie class, but I think there are two ways to approach this:

  1. You could set the Cookie header in the headers property of the replicatorconfiguration (Cookie: <string>)
  2. You could use the SessionAuthenticator and specify the cookie name using the two string constructor (not sure if this works, but it looks like it should)