Table of Contents

Interface IAuthClient

Namespace
Coherence.Cloud
Assembly
Coherence.Runtime.dll
public interface IAuthClient

Properties

GuestPassword

string GuestPassword { get; }

Property Value

string

LoggedIn

bool LoggedIn { get; }

Property Value

bool

SessionToken

string SessionToken { get; }

Property Value

string

SessionTokenRefreshResult

Result? SessionTokenRefreshResult { get; }

Property Value

Result?

UserId

string UserId { get; }

Property Value

string

UserName

string UserName { get; }

Property Value

string

Methods

LoginAsGuest()

Task<Result> LoginAsGuest()

Returns

Task<Result>

LoginWithPassword(string, string, bool)

Task<Result> LoginWithPassword(string userName, string password, bool autoSignup)

Parameters

userName string
password string
autoSignup bool

Returns

Task<Result>

Logout()

void Logout()

Events

OnConcurrentConnection

event Action<ConnectionClosedResponse> OnConcurrentConnection

Event Type

Action<ConnectionClosedResponse>

OnLogin

event Action<LoginResponse> OnLogin

Event Type

Action<LoginResponse>

OnLogout

event Action OnLogout

Event Type

Action

OnSessionRefreshed

event Action<Result> OnSessionRefreshed

Event Type

Action<Result>