private WebRioSsoConfig GetWebRioSsoConfiguration(RequestActionEventArgs args) { var configuration = new WebRioSsoConfig(); configuration.JSessionId = GetParamValue(args, UsdParameter.WebRioJSessionId); configuration.RequestType = GetRequestType(args); if (configuration.RequestType == RequestType.TravelPlanner) { configuration.TravelPlannerId = GetParamValue(args, UsdParameter.EntityId); if (!string.IsNullOrWhiteSpace(configuration.TravelPlannerId)) { CrmService.GetInitialsFrom(_client.CrmInterface, configuration); } } if (configuration.RequestType == RequestType.Booking) { GetBookingDetails(args, configuration); } else if (configuration.RequestType == RequestType.TravelPlanner) { GetTravelPlannerDetails(args, configuration); } CrmService.GetWebRioSsoConfiguration(_client.CrmInterface, configuration); configuration.Login = CrmService.GetSsoLoginDetails(_client.CrmInterface, _client.CrmInterface.GetMyCrmUserId()); configuration.PrivateKey = CrmService.GetWebRioPrivateKey(_client.CrmInterface); ValidateConfiguration(configuration); return(configuration); }