A couple weeks ago while playing around with a new version of RavenDb hosted under IIS I ran accross authentication issues. After some investigation it became clear setting up RavenDB Authentication would resolve the issue. The documentation from RavenDB for Windows Authentication and OAuth configurations is good. If you decide to leverage OAuth, an RavenDB API Keys must be setup.
Host RavenDb in IIS:
- Host RavenDb in IIS
- Create new RavenDb database called SocialTrails.
- Setup and configure RavenDB APIKey and/or Windows Authentication for SocialTrails
The documentation from RavenDb shows how to configure this by convention. Recently I’ve been using more convention based configuration but in this scenario I’d prefer to set in my app.config. I specifically want to leverage app.config transformations to alter the configuration between environments and prevent my information from getting into github. Below is an example app.config and app.debug.config transformation example. I’m using SlowCheetah – XML Transforms to perform app.config transformations.
1 2 3 4
1 2 3 4 5 6 7 8 9 10