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
System.Object
Authenticator
SessionAuthenticator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Couchbase.Lite.Sync
Assembly: Couchbase.Lite.dll
Syntax
public sealed class SessionAuthenticator : Authenticator

Constructors

| 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
System.String sessionID SessionID
| 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
System.String sessionID SessionID
System.String cookieName CookieName

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
System.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
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX