Skip to content

Commit e5b4214

Browse files
authored
Merge pull request #2652 from RedisInsight/be/bugfix/RI-4999_SSO_authorization_failed
#RI-4999 - [BE] SSO authorization failed on Stage because of changed …
2 parents 9fce690 + dbddd98 commit e5b4214

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redisinsight/api/src/__mocks__/cloud-user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const mockCloudApiCsrfToken: ICloudApiCsrfToken = {
6565
export const mockCloudApiAuthDto: ICloudApiCredentials = {
6666
accessToken: 'at_p6vA6A5tF36Jf6twH2cBOqtt7n',
6767
csrf: mockCloudApiCsrfToken.csrf_token,
68-
apiSessionId: 'asid_p6vA6A5tF36Jf6twH2cBOqtt7n',
68+
apiSessionId: 'asid_p6v-A6A5tF36J-f6twH2cB!@#$_^&*()Oqtt7n',
6969
};
7070

7171
export const mockCloudUserAccount = Object.assign(new CloudUserAccount(), {

redisinsight/api/src/modules/cloud/user/providers/cloud-user.api.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class CloudUserApiProvider extends CloudApiProvider {
4949
return get(headers, 'set-cookie', []).find(
5050
(header) => header.indexOf('JSESSIONID=') > -1,
5151
)
52-
?.match(/JSESSIONID=(\w+)/)?.[1];
52+
?.match(/JSESSIONID=([^;]+)/)?.[1];
5353
} catch (e) {
5454
throw wrapCloudApiError(e);
5555
}

0 commit comments

Comments
 (0)