Skip to content

chore: limit aal1 sessions correctly#2452

Merged
staaldraad merged 6 commits into
masterfrom
etienne/prodsec-76
May 25, 2026
Merged

chore: limit aal1 sessions correctly#2452
staaldraad merged 6 commits into
masterfrom
etienne/prodsec-76

Conversation

@staaldraad
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

When MFA_ALLOW_LOW_AAL is false, AAL1 sessions JWTs should be limited to 15 minutes. Currently the JWT is created with an expiry set to the standard session timeout. And the LOW_AAL timeout is only checked when the refresh_token is issued.
This means AAL1 sessions can be valid beyond the 15 minute window.

What is the new behavior?

AAL1 JWTs are limited to 15minutes.

@staaldraad staaldraad requested a review from a team as a code owner March 27, 2026 16:48
Comment thread internal/tokens/service.go Outdated
Comment thread internal/tokens/service.go Outdated
@staaldraad staaldraad force-pushed the etienne/prodsec-76 branch from e5321cd to e06e302 Compare May 22, 2026 09:45
Comment thread internal/tokens/service.go Outdated
Comment thread internal/tokens/service.go
@staaldraad staaldraad merged commit 3f14245 into master May 25, 2026
9 checks passed
@staaldraad staaldraad deleted the etienne/prodsec-76 branch May 25, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants