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)
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 SourceSessionAuthenticator(String)
Constructor using the default cookie name for Sync Gateway ('SyncGatewaySession')
Declaration
public SessionAuthenticator(string sessionID)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionID | SessionID |
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 SourceCookieName
Gets the name of the cookie to store the session in
Declaration
public string CookieName { get; }
Property Value
Type | Description |
---|---|
System.String |
SessionID
Gets the session ID to set as the cookie value
Declaration
public string SessionID { get; }
Property Value
Type | Description |
---|---|
System.String |