Skip to content

jieke-wang/Couchbase.Extensions

 
 

Repository files navigation

Couchbase Extensions

Build status

A collection of extensions for the Couchbase .Net SDK designed to simplify working with Couchbase within .Net Core applications.

Developer Guide

Using Couchbase 5.0 Role Based Authentication

New to Couchbase Server 5.0 is Role Based Authentication or RBAC, which requires a cluster level user with roles to be created on the server. Alternatively, you can use the cluster user and password to authenticate with any bucket on the server. To get started, we suggest you create a config file with your Username and Password fields matching the RBAC user you have created on the server (or the cluster admin in dev environments):

{
  "Couchbase": {
    "Username": "Administrator",
    "Password" : "password",
    "Servers": [
      "http://localhost:8091/"
    ],
    "Buckets": [
      {
        "Name": "travel-sample"
      }
    ]
  }
}

For examples checkout the TestApp and Couchbase.Extensions.DependencyInjection.IntegrationTests projects in this repo.

If you are using a Couchbase Server version that does not support RBAC (all Pre-5.0 servers), then you will use the traditional Bucket name and password to open the bucket.

Licensing

Open source under the Apache 2.0 license. Please contribute :)

About

Extensions for Couchbase for .Net Core

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 88.8%
  • HTML 10.6%
  • Other 0.6%