Issue with sessionduration since latest v3.1. Extension is not working
See original GitHub issueThere 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;

Issue Analytics
- State:
- Created 9 months ago
- Reactions:7
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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#L116If your IDP does not include the SessionDuration Attribute, the
sessionduration
will be typeof ‘undefined’ as now checked on that line143
where the error occurred. https://github.com/prolane/samltoawsstskeys/blob/86a2c87b8bd2c680166b5da553b6e616967e1bfc/background/script.js#L143