From Bright Pattern Documentation

Revision as of 15:35, 28 July 2026 by Laura.donovan (talk | contribs) (Updated via BpClonePage extension. Source page: draft:Desktop-integration-api-net-version-tutorial/AgentLogin)

< Previous | Next >
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Agent Login

Credentialed Login

A single direct login method is provided:

public void login(string adHost, string loginId, string domain, string password, PhoneDeviceType phoneType, string phoneNum = "", bool force = false);


The PhoneDeviceType phoneType argument specifies the phone device type.

Authentication Service

Client authentication is also available via the Users Authentication service.


First, call the following method to determine whether your contact center is configured to use the Users Authentication service.

public AuthType checkAuthType(string domain, string adHost = null);


If checkAuthType() returns AuthType::SessionId, call the following method to log in via Users Authentication.

public void loginWithSessionId(string adHost, string sessionId, PhoneDeviceType phoneType, string phoneNum = "", bool force = false);


Log In/Out Events and Methods

After authentication, the following event will be raised to indicate whether the login is successful:

public event LoggedInCallback loggedInCallback;


The following method is used to log out:

public override ResultCode logout()


And the following event will be raised once logout is completed:

public event LoggedOutCallback loggedOutCallback;

 

< Previous | Next >