[Architecture] Utility conditional authentication functions for cookie related operations

2018-05-14 Thread Senthalan Kanagalingam
Hi all, I am started to work on the $subject. These utility functions can be directly used in script based conditional authentication as javascript methods. Underline implementation will be writen on java in the backend. We have identified following cookie related functions, - setCookie(conte

Re: [Architecture] Utility conditional authentication functions for cookie related operations

2018-05-14 Thread Ruwan Abeykoon
Hi Senthalan, It is not good to add too many functions to do the same operation. In JS world, we like to do things with the data itself. instead of setEncryptedCookie setCookie(response, "name", "value", {"max-age" : 4000, "path" : "/localhost", "domain" : "localhost", "httpOnly" : true, "se

Re: [Architecture] Utility conditional authentication functions for cookie related operations

2018-05-15 Thread Senthalan Kanagalingam
Hi Ruwan, +1 for your suggestion. So we will have two methods to setCookie and getCookieValue. setCookie(response, "name", "value", {"max-age" : 4000, "path" : "/localhost", "domain" : "localhost", "httpOnly" : true, "secure" : true, "version" : 1, "comment" : "some comments", * "encrypt" : tru