Couchbase C Client
3.1.0
Asynchronous C Client for Couchbase
|
Go to the documentation of this file.
233 typedef const char *(*lcb_AUTHCALLBACK)(
void *cookie,
const char *host,
const char *port,
const char *bucket);
247 lcb_AUTHCALLBACK passcb);
271 LCBAUTH_MODE_DYNAMIC = 2
@ LCBAUTH_F_BUCKET
User is bucket name.
Definition: auth.h:157
lcb_AUTHENTICATOR * lcbauth_clone(const lcb_AUTHENTICATOR *src)
lcbauth_ADDPASSFLAGS
Flags to use when adding a new set of credentials to lcbauth_add_pass.
Definition: auth.h:148
Opaque pointer containing credentials for the library.
lcb_STATUS lcbauth_set_mode(lcb_AUTHENTICATOR *src, lcbauth_MODE mode)
@ LCBAUTH_F_CLUSTER
User/Password is administrative; for cluster.
Definition: auth.h:150
@ LCBAUTH_MODE_CLASSIC
Use "bucket-specific" credentials when authenticating.
Definition: auth.h:254
lcbauth_MODE
Definition: auth.h:249
lcb_AUTHENTICATOR * lcbauth_new(void)
@ LCBAUTH_MODE_RBAC
Use role-based access control.
Definition: auth.h:263
lcb_STATUS
Error codes returned by the library.
Definition: error.h:209
void lcbauth_ref(lcb_AUTHENTICATOR *auth)
void lcbauth_unref(lcb_AUTHENTICATOR *auth)
lcb_STATUS lcbauth_add_pass(lcb_AUTHENTICATOR *auth, const char *user, const char *pass, int flags)