Hi guys,
Starting on the next build, we would have new authentication options for RavenDB.
In particular, we removed the distinction between OAuth and Windows mode and we now have what is effectively mixed mode.
You can define login credentials that would be managed inside RavenDB (no need to worry about windows users).
You can use the new support via Api Keys, like this:
<add name="RavenDB" connectionString="Url="
http://raven;Database=Northwind;ApiKey=Northwinder/MjEzLTl5YXNrZmhkc2FsZmRzYWZkYQ=="/>
Next week we will also have studio support for that.
In the meantime, you would need to create a document named "Raven/ApiKeys/API_KEY_NAME"
The format is:
public class ApiKeyDefinition
{
public string Id { get; set; }
public string Name { get; set; }
public string Secret { get; set; }
public bool Enabled { get; set; }
public DatabaseAccess[] Databases { get; set; }
}
public class DatabaseAccess
{
public bool Admin { get; set; }
public string TenantId { get; set; }
public bool ReadOnly { get; set; }
}