public async Task <Authorization> Login(string username, string password)
        {
            var response = await _alfrescoHttpClient.Login(new TicketBody { UserId = username, Password = password });

            var alfrescoProfile = await _alfrescoHttpClient.GetPerson("-me-", ImmutableList <Parameter> .Empty
                                                                      .Add(new Parameter(HeaderNames.Authorization, $"Basic {response.Entry.Id.ToAlfrescoAuthentication()}", ParameterType.HttpHeader)));

            return(_mapper.Map <Authorization>((response, alfrescoProfile, _alfrescoConfiguration, _signerConfiguration)));
        }