You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With oauth2 authentication, id attribute is not filled in /api/account
Motivation for or Use Case
The attribute can be used for business logic.
In older jhipster version (ex. 7.8.1), there is following logic
// handle resource server JWT, where sub claim is email and uid is ID
if (details.get("uid") != null) {
user.setId((String) details.get("uid"));
user.setLogin(sub);
} else {
user.setId(sub);
}
ldaloia-dev
changed the title
Gateway oauth2: missing id detail from token attributes from api /api/account
Gateway OAuth2: missing id detail from token attributes from api /api/account
May 23, 2025
Overview of the issue
With oauth2 authentication, id attribute is not filled in /api/account
Motivation for or Use Case
The attribute can be used for business logic.
In older jhipster version (ex. 7.8.1), there is following logic
Reproduce the error
Login or call /api/account endpoint
Related issues
Suggest a Fix
After this line
add optional put
JHipster Version(s)
8.11.0
Browsers and Operating System
The text was updated successfully, but these errors were encountered: