Skip to content

Made JWT TTL configurable#6920

Merged
valadas merged 1 commit intodnnsoftware:developfrom
valadas:jwt-config
Jan 18, 2026
Merged

Made JWT TTL configurable#6920
valadas merged 1 commit intodnnsoftware:developfrom
valadas:jwt-config

Conversation

@valadas
Copy link
Copy Markdown
Contributor

@valadas valadas commented Jan 18, 2026

JWT implementation had hardcoded values for the session timeout and the renewal timeout. With this PR we can set those values in the web.config instead.

I decided to use minutes for both values because:

  • It is simpler to have the same unit of measure
  • I needed to do some testing for another project and needed to make those very short just to trigger the bug.

The code fallback to the original hardcoded values if the settings don't exist and the initial default settings are put in the web.config for discoverability.

Summary

JWT implementation had hardcoded values for the session timeout and the renewal timeout. With this PR we can set those values in the web.config instead.

I decided to use minutes for both values because:
- It is simpler to have the same unit of measure
- I needed to do some testing for another project and needed to make those very short just to trigger the bug.

The code fallback to the original hardcoded values if the settings don't exist and the initial default settings are put in the web.config for discoverability.
@valadas valadas added this to the 10.2.2 milestone Jan 18, 2026
Copy link
Copy Markdown
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@valadas valadas merged commit 87f13ff into dnnsoftware:develop Jan 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants