Skip to content

Commit 1e9b600

Browse files
committed
Version 3.7 release
1 parent 7bce28a commit 1e9b600

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4641
-763
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
################################################################################
44

55
/.vs
6+
node_modules
7+
.idea

.mocharc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extension": ["ts"],
3+
"spec": "test/**/*.js",
4+
"require": "ts-node/register"
5+
}

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ module.exports = router;
9292
```
9393

9494
Code to initialize a httpContextProvider in Express (requires node module 'cookie-parser'):
95-
```
95+
96+
```javascript
9697
function initializeExpressHttpContextProvider(req, res) {
9798
return {
9899
getHttpRequest: function () {
@@ -123,7 +124,7 @@ function initializeExpressHttpContextProvider(req, res) {
123124
},
124125
getHttpResponse: function () {
125126
var httpResponse = {
126-
setCookie: function (cookieName, cookieValue, domain, expiration) {
127+
setCookie: function (cookieName, cookieValue, domain, expiration, httpOnly, isSecure, sameSiteValue) {
127128
if (domain === "")
128129
domain = null;
129130

@@ -138,8 +139,9 @@ function initializeExpressHttpContextProvider(req, res) {
138139
expires: expirationDate,
139140
path: "/",
140141
domain: domain,
141-
secure: false,
142-
httpOnly: false
142+
secure: isSecure,
143+
httpOnly: httpOnly,
144+
sameSite: sameSiteValue
143145
});
144146
}
145147
};
@@ -150,7 +152,8 @@ function initializeExpressHttpContextProvider(req, res) {
150152
```
151153

152154
Code to configure hashing in KnownUser SDK (requires node module 'crypto'):
153-
```
155+
156+
```javascript
154157
function configureKnownUserHashing() {
155158
var utils = QueueITConnector.Utils;
156159
utils.generateSHA256Hash = function (secretKey, stringToHash) {

dist/HttpContextProvider.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface IHttpRequest {
77
getRequestBodyAsString(): string;
88
}
99
export interface IHttpResponse {
10-
setCookie(cookieName: string, cookieValue: string, domain: string, expiration: any): any;
10+
setCookie(cookieName: string, cookieValue: string, domain: string, expiration: number, httpOnly: boolean, isSecure: boolean, sameSiteValue: string): any;
1111
}
1212
export interface IHttpContextProvider {
1313
getHttpRequest(): IHttpRequest;

dist/HttpContextProvider.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/HttpContextProvider.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/IntegrationConfig/IntegrationConfigHelpers.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/IntegrationConfig/IntegrationConfigHelpers.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/IntegrationConfig/IntegrationConfigModel.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ export declare class IntegrationConfigModel {
22
Name: string;
33
EventId: string;
44
CookieDomain: string;
5+
IsCookieHttpOnly: boolean;
6+
IsCookieSecure: boolean;
7+
CookieSameSiteValue: string | null;
58
LayoutName: string;
69
Culture: string;
710
ExtendCookieValidity: boolean | null;

dist/IntegrationConfig/IntegrationConfigModel.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)