protected override void ConfigureServer(Database.Config.RavenConfiguration ravenConfiguration)
 {
     ravenConfiguration.AnonymousUserAccessMode = AnonymousUserAccessMode.None;
     ravenConfiguration.AuthenticationMode      = "OAuth";
     ravenConfiguration.OAuthTokenCertificate   = CertGenerator.GenerateNewCertificate("RavenDB.Test");
     ravenConfiguration.Catalog.Catalogs.Add(new TypeCatalog(typeof(FakeAuthenticateClient)));
 }
Esempio n. 2
0
 protected override void ModifyConfiguration(RavenConfiguration ravenConfiguration)
 {
     ravenConfiguration.AnonymousUserAccessMode = AnonymousUserAccessMode.None;
     ravenConfiguration.OAuthTokenCertificate   = CertGenerator.GenerateNewCertificate("RavenDB.Test");
 }
Esempio n. 3
0
 private static void Main()
 {
     CertGenerator.GenerateNewCertificate("raven.cert");
 }