question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with sessionduration since latest v3.1. Extension is not working

See original GitHub issue

There is an issue in latest version 3.1, in script.js file inside onBeforeRequestEvent function sessionduration is not defined because of that it is not working please fix this asap.

let sessionduration = undefined;
image

Issue Analytics

  • State:open
  • Created 9 months ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
prolanecommented, Dec 19, 2022

With the refactoring of the code due to Chrome Extension manifest V3 there was indeed a bug introduced related to the sessionduration. I was able to reproduce the issue. You’ll encounter this issue when your IDP does not add a Session Duration as one of the SAML Assertion attributes.

This is now fixed with this: https://github.com/prolane/samltoawsstskeys/blob/86a2c87b8bd2c680166b5da553b6e616967e1bfc/background/script.js#L143

I’ll publish v3.2 tonight in the Chrome web store.

Please let me know if this indeed fixed it for you.

0reactions
prolanecommented, Dec 20, 2022

@shubhkb I agree with you I should declare the variable in a next updated version and I will. For now I don’t think it will make any functional difference, does it? The sessionduration variable will implicitly be a global variable due to: https://github.com/prolane/samltoawsstskeys/blob/86a2c87b8bd2c680166b5da553b6e616967e1bfc/background/script.js#L116

If your IDP does not include the SessionDuration Attribute, the sessionduration will be typeof ‘undefined’ as now checked on that line 143 where the error occurred. https://github.com/prolane/samltoawsstskeys/blob/86a2c87b8bd2c680166b5da553b6e616967e1bfc/background/script.js#L143

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known issues when migrating to Manifest V3
This page lists major known issues that affect developers as they migrate to Manifest V3. Known issues are divided into two primary groups:....
Read more >
Lambda function not appearing in UI - New Relic Explorers Hub
I have set up the lambda layer and it is working appropriately except there are no functions listed in the Lambda Functions section...
Read more >
Aws coginto refresh token problem · Issue #66 - GitHub
Dear @ashishdhingra , I am using latest version of Amazon.Extensions.CognitoAuthentication" version="2.0.3" targetFramework="net472" I still ...
Read more >
Set session duration - AWS IAM Identity Center (successor to ...
When you create a new permission set, the session duration is set to 1 hour (in seconds) by default. The minimum session duration...
Read more >
Past Resolved and Known Issues by Release
Rapid7 reports vulnerabilities in the Java proxy. High, 22.12.0, 22.12.1, December 19, 2022. WEBSRV-871, Apache Web Server Agent, When the Apache Agent ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found