All Client SDK services that depend on infrastructure services accessed over a network require login credentials. Applications are responsible for providing the login credentials to the Client SDK through the AuthenticationService interface.
To register for authentication a AvayaRecordingClient instance must be created. Authorization occurs by the following sequence:
client.authenticationService.login(token);
When you call 'login(token)' from authenticationService the following sequence of events will occur:
ACSR token and timestamp keep in browser local storage.
To log out, simply call
client.authenticationService.logout();
After calling 'logout()' ACSR timestamp and token will be removed from the local storage.
The most of Recording Management services for authorized requests require a 'user' parameter apart from token and timestamp on its URL. For example Program service creates request wich URL will contain user=
// Log in on ACSR
client.authenticationService.login(token);
// configure parameters for Program Service
var params = new AvayaRecordingClient.Services.ProgramService.ProgramParams({
//...
user: ""
});
client.programService.getRecordedPrograms(params);