@@ -37,7 +37,7 @@ local function setDebugCookie(debugEntries)
3737 cookieValue = cookieValue .. (key .. " =" .. value .. " |" )
3838 end
3939 cookieValue = cookieValue :sub (0 , cookieValue :len ()- 1 ) -- remove trailing |
40- iHelpers .response .setCookie (QUEUEIT_DEBUG_KEY , cookieValue , 0 , nil )
40+ iHelpers .response .setCookie (QUEUEIT_DEBUG_KEY , cookieValue , 0 , nil , false , false )
4141end
4242
4343local function generateTargetUrl (originalTargetUrl )
@@ -124,7 +124,8 @@ local function cancelRequestByLocalConfig(
124124end
125125-- END Private functions
126126
127- ku .extendQueueCookie = function (eventId , cookieValidityMinute , cookieDomain , secretKey )
127+ ku .extendQueueCookie = function (
128+ eventId , cookieValidityMinute , cookieDomain , isCookieHttpOnly , isCookieSecure , secretKey )
128129 assert (utils .toString (eventId ) ~= " " , " eventId can not be nil or empty." )
129130 assert (utils .toString (secretKey ) ~= " " , " secretKey can not be nil or empty." )
130131
@@ -133,7 +134,8 @@ ku.extendQueueCookie = function(eventId, cookieValidityMinute, cookieDomain, sec
133134 error (" cookieValidityMinute should be a number greater than 0." )
134135 end
135136
136- userInQueueService .extendQueueCookie (eventId , cookieValidityMinute , cookieDomain , secretKey )
137+ userInQueueService .extendQueueCookie (
138+ eventId , cookieValidityMinute , cookieDomain , isCookieHttpOnly , isCookieSecure , secretKey )
137139end
138140
139141ku .cancelRequestByLocalConfig = function (targetUrl , queueitToken , cancelConfig , customerId , secretKey )
@@ -165,19 +167,27 @@ ku.validateRequestByIntegrationConfig = function(
165167 currentUrlWithoutQueueITToken , queueitToken , integrationConfigJson , customerId , secretKey )
166168 -- Private functions
167169 local function handleQueueAction (
168- _currentUrlWithoutQueueITToken , _queueitToken , _customerIntegration ,
169- _customerId , _secretKey , _matchedConfig , _debugEntries , _isDebug )
170+ _currentUrlWithoutQueueITToken ,
171+ _queueitToken ,
172+ _customerIntegration ,
173+ _customerId ,
174+ _secretKey ,
175+ _matchedConfig ,
176+ _debugEntries ,
177+ _isDebug )
170178
171179 local eventConfig = models .QueueEventConfig .create ()
172180 local targetUrl
173181 eventConfig .eventId = _matchedConfig [" EventId" ]
182+ eventConfig .version = _customerIntegration [" Version" ]
174183 eventConfig .queueDomain = _matchedConfig [" QueueDomain" ]
175- eventConfig .layoutName = _matchedConfig [" LayoutName" ]
176- eventConfig .culture = _matchedConfig [" Culture" ]
177184 eventConfig .cookieDomain = _matchedConfig [" CookieDomain" ]
185+ eventConfig .isCookieHttpOnly = _matchedConfig [" IsCookieHttpOnly" ] or false
186+ eventConfig .isCookieSecure = _matchedConfig [" IsCookieSecure" ] or false
178187 eventConfig .extendCookieValidity = _matchedConfig [" ExtendCookieValidity" ]
179188 eventConfig .cookieValidityMinute = _matchedConfig [" CookieValidityMinute" ]
180- eventConfig .version = _customerIntegration [" Version" ]
189+ eventConfig .layoutName = _matchedConfig [" LayoutName" ]
190+ eventConfig .culture = _matchedConfig [" Culture" ]
181191 eventConfig .actionName = _matchedConfig [" Name" ]
182192
183193 if (_matchedConfig [" RedirectLogic" ] == " ForcedTargetUrl"
@@ -201,9 +211,11 @@ ku.validateRequestByIntegrationConfig = function(
201211
202212 local cancelEventConfig = models .CancelEventConfig .create ()
203213 cancelEventConfig .eventId = _matchedConfig [" EventId" ]
214+ cancelEventConfig .version = _customerIntegration [" Version" ]
204215 cancelEventConfig .queueDomain = _matchedConfig [" QueueDomain" ]
205216 cancelEventConfig .cookieDomain = _matchedConfig [" CookieDomain" ]
206- cancelEventConfig .version = _customerIntegration [" Version" ]
217+ cancelEventConfig .isCookieHttpOnly = _matchedConfig [" IsCookieHttpOnly" ] or false
218+ cancelEventConfig .isCookieSecure = _matchedConfig [" IsCookieSecure" ] or false
207219 cancelEventConfig .actionName = _matchedConfig [" Name" ]
208220
209221 return cancelRequestByLocalConfig (
0 commit comments