From Bright Pattern Documentation
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;