Skip to content

Commit 564d6e6

Browse files
Merge pull request #7560 from HiranyaKavishani/betaFixing
Fixing security protection issue
2 parents 20178f9 + f95e446 commit 564d6e6

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/services/login/login_callback.jag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
'name': 'AM_ACC_TOKEN_DEFAULT_P2',
7070
'value': accessTokenPart2,
7171
'path': site.context + "/",
72-
"HttpOnly": true,
72+
"httpOnly": true,
7373
"secure": true,
7474
"maxAge": Integer(tokenResponse.expires_in)
7575
};
@@ -79,7 +79,7 @@
7979
'name': 'AM_ACC_TOKEN_DEFAULT_P2',
8080
'value': accessTokenPart2,
8181
'path': "/api/am/publisher/",
82-
"HttpOnly": true,
82+
"httpOnly": true,
8383
"secure": true,
8484
"maxAge": Integer(tokenResponse.expires_in)
8585
};
@@ -89,7 +89,7 @@
8989
'name': 'AM_REF_TOKEN_DEFAULT_P2',
9090
'value': refreshTokenPart2,
9191
'path': site.context + "/",
92-
"HttpOnly": true,
92+
"httpOnly": true,
9393
"secure": true,
9494
"maxAge": -1
9595
};

features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/services/refresh/refresh.jag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
'name': 'AM_ACC_TOKEN_DEFAULT_P2',
8282
'value': accessTokenPart2,
8383
'path': site.context + "/",
84-
"HttpOnly": true,
84+
"httpOnly": true,
8585
"secure": true,
8686
"maxAge": Integer(tokenResponse.expires_in)
8787
};
@@ -91,7 +91,7 @@
9191
'name': 'AM_ACC_TOKEN_DEFAULT_P2',
9292
'value': accessTokenPart2,
9393
'path': "/api/am/publisher/",
94-
"HttpOnly": true,
94+
"httpOnly": true,
9595
"secure": true,
9696
"maxAge": Integer(tokenResponse.expires_in)
9797
};
@@ -101,7 +101,7 @@
101101
'name': 'AM_REF_TOKEN_DEFAULT_P2',
102102
'value': refreshTokenPart2,
103103
'path': site.context + "/",
104-
"HttpOnly": true,
104+
"httpOnly": true,
105105
"secure": true,
106106
"maxAge": -1
107107
};

features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/services/login/idp.jag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
var authRequestParams = "?response_type=code&client_id=" + clientId + "&scope=" + scopes + "&state=" + state + "&redirect_uri=" + loginCallbackUrl;
8989
log.debug("Redirecting to = " + authorizeEndpoint + authRequestParams);
9090

91-
var cookie = {'name': 'CLIENT_ID', 'value': clientId, 'path': "/devportal/", "HttpOnly": false, "secure": true, "maxAge": -1};
91+
var cookie = {'name': 'CLIENT_ID', 'value': clientId, 'path': "/devportal/", "httpOnly": false, "secure": true, "maxAge": -1};
9292
response.addCookie(cookie);
9393

9494
response.sendRedirect(authorizeEndpoint + authRequestParams);

features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/services/login/login_callback.jag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@
6565
// Setting access token part 1 as secured HTTP only cookie, Can't restrict the path to /api/am/store
6666
// because partial HTTP only cookie is required for get the user information from access token,
6767
// hence setting the HTTP only access token path to /store/
68-
var cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': accessTokenPart2, 'path': site.context + "/", "HttpOnly": true, "secure": true, "maxAge": Integer(tokenResponse.expires_in)};
68+
var cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': accessTokenPart2, 'path': site.context + "/", "httpOnly": true, "secure": true, "maxAge": Integer(tokenResponse.expires_in)};
6969
response.addCookie(cookie);
7070

71-
cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': accessTokenPart2, 'path': "/api/am/store/", "HttpOnly": true, "secure": true, "maxAge": Integer(tokenResponse.expires_in)};
71+
cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': accessTokenPart2, 'path': "/api/am/store/", "httpOnly": true, "secure": true, "maxAge": Integer(tokenResponse.expires_in)};
7272
response.addCookie(cookie);
7373

74-
cookie = {'name': 'AM_REF_TOKEN_DEFAULT_P2', 'value': refreshTokenPart2, 'path': site.context + "/", "HttpOnly": true, "secure": true, "maxAge": -1};
74+
cookie = {'name': 'AM_REF_TOKEN_DEFAULT_P2', 'value': refreshTokenPart2, 'path': site.context + "/", "httpOnly": true, "secure": true, "maxAge": -1};
7575
response.addCookie(cookie);
7676

7777
cookie = {'name': 'WSO2_AM_TOKEN_1_Default', 'value': accessTokenPart1, 'path': site.context + "/", "secure": true, "maxAge": Integer(tokenResponse.expires_in)};

features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/services/logout/logout_callback.jag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
include("/services/constants.jag");
2323
include("/services/jagg.jag");
2424

25-
var cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': '', 'path': site.context + "/", "HttpOnly": true, "secure": true, "maxAge": 2};
25+
var cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': '', 'path': site.context + "/", "httpOnly": true, "secure": true, "maxAge": 2};
2626
response.addCookie(cookie);
27-
cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': '', 'path': "/api/am/store/", "HttpOnly": true, "secure": true, "maxAge": 2};
27+
cookie = {'name': 'AM_ACC_TOKEN_DEFAULT_P2', 'value': '', 'path': "/api/am/store/", "httpOnly": true, "secure": true, "maxAge": 2};
2828
response.addCookie(cookie);
29-
cookie = {'name': 'AM_REF_TOKEN_DEFAULT_P2', 'value': '', 'path': site.context + "/", "HttpOnly": true, "secure": true, "maxAge": 2};
29+
cookie = {'name': 'AM_REF_TOKEN_DEFAULT_P2', 'value': '', 'path': site.context + "/", "httpOnly": true, "secure": true, "maxAge": 2};
3030
response.addCookie(cookie);
3131
cookie = {'name': 'WSO2_AM_TOKEN_1_Default', 'value': '', 'path': site.context + "/", "secure": true, "maxAge": 2};
3232
response.addCookie(cookie);

0 commit comments

Comments
 (0)