DependencyTrack / DependencyTrack/dependency-track
Session initiated through OIDC shall not exceed OIDC session lifetime
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h
- Merged PRs (30d)
- 233
Description
### Current Behavior:
Without using DT logout feature, DT session remains active forever, irrelevant of SSO session lifetime.
### Prerequisite:
- OpenID Provider (OP) is configured with limited session duration (Likely the case when following [KeyCloak example](https://docs.dependencytrack.org/getting-started/openidconnect-configuration/) using a standard KC instance)
### Steps to Reproduce:
1. User connects to DT through OIDC
2. User stops using DT for longer than the SSO session duration (irrelevant if browser is closed or not)
3. User eventually returns to DT
-> User can continue to use DT without having to reauthenticate
### Expected Behavior:
User is redirected to login screen once its SSO session has expired (based on time solely here, see #2016 for additional improvement).
From a technical standpoint, considering implementing:
- Either:
- DT token expiration <= SSO token expiration [assuming SSO token duration can be retrieved]
- Configurable max age for DT token [otherwise]
- Automatic return to login screen once DT token has expired
Contributor guide
Assessment
This issue has not been assessed yet.