Skip to content

Commit

Permalink
DAC-1880 Enhancements to RP Onboarding to Cognito/QuickSight (#451)
Browse files Browse the repository at this point in the history
Make session lifetime 55 minutes in production
  • Loading branch information
hdavey-gds authored Dec 4, 2023
1 parent 55df32d commit 7e2918d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/cognito-quicksight-access/handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ test('session duration', async () => {
await expectSessionDuration('dev', 15);
await expectSessionDuration('test', 15);
await expectSessionDuration('feature', 15);
await expectSessionDuration('production', 600);
await expectSessionDuration('production', 55);

expect(mockQuicksightClient.calls()).toHaveLength(4);
});
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/cognito-quicksight-access/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const getEmbedUrl = async (accountId: string, username: string): Promise<string>
const request = new GenerateEmbedUrlForRegisteredUserCommand({
AwsAccountId: accountId,
UserArn: userArn,
SessionLifetimeInMinutes: getAWSEnvironment() === 'production' ? 600 : 15,
SessionLifetimeInMinutes: getAWSEnvironment() === 'production' ? 55 : 15,
ExperienceConfiguration: {
QuickSightConsole: {
InitialPath: '/start/dashboards',
Expand Down

0 comments on commit 7e2918d

Please sign in to comment.