jieke-wang / Couchbase.Extensions

Extensions for Couchbase for .Net Core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:C# 88.8%Language:HTML 10.6%Language:CSS 0.4%Language:JavaScript 0.2%Language:Dockerfile 0.0%