DependencyTrack / DependencyTrack/dependency-track

issue in parsing token

Open
#5,842 1 comment 0 reactions 0 assignees View on GitHub
defect in triage
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

when using OIDC, the app cannot parse tokens if the tenant is set to multi-tenant properly. some info from the token will be lost.

### Steps to Reproduce

1. Deploy Dependency-Track with OIDC authentication enabled.
2. Configure the application to use an external identity provider (e.g., Microsoft Entra ID) with the tenant set to multi-tenant.
3. Configure the OIDC settings (issuer, client ID, client secret, redirect URI) according to the provider documentation.
4. Assign users from a different tenant to the application.
5. Attempt to log in using a user account from the external tenant.
6. After successful authentication at the identity provider, observe the token returned to Dependency-Track.
7. The application fails to parse the token correctly, resulting in missing claims (groups).
8. Login either fails completely or succeeds with incomplete user information and incorrect authorization behavior.

### Expected Behavior

whether multi or single tenant set, the token returned should properly be parsed and show all information without losing it.

### Dependency-Track Version

4.7.x

### Dependency-Track Distribution

Container Image

### Database Server

PostgreSQL

### Database Server Version

_No response_

### Browser

Google Chrome

### Checklist

- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.