Show / Hide Table of Contents

Class SessionAuthenticator

A class that will authenticate using a session cookie. This can be used for things like Sync Gateway admin created sessions, or implicit authentication flow (e.g. OpenID Connect where the authentication is done already)

Inheritance
object
Authenticator
SessionAuthenticator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Couchbase.Lite.Sync
Assembly: Couchbase.Lite.dll
Syntax
public sealed class SessionAuthenticator : Authenticator

Constructors

| Improve this Doc View Source

SessionAuthenticator(string, string)

Constructor using the given cookie name

Declaration
public SessionAuthenticator(string sessionID, string cookieName)
Parameters
Type Name Description
string sessionID

SessionID

string cookieName

CookieName

| Improve this Doc View Source

SessionAuthenticator(string)

Constructor using the default cookie name for Sync Gateway ('SyncGatewaySession')

Declaration
public SessionAuthenticator(string sessionID)
Parameters
Type Name Description
string sessionID

SessionID

Properties

| Improve this Doc View Source

CookieName

Gets the name of the cookie to store the session in

Declaration
public string CookieName { get; }
Property Value
Type Description
string
| Improve this Doc View Source

SessionID

Gets the session ID to set as the cookie value

Declaration
public string SessionID { get; }
Property Value
Type Description
string
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX