5 Commits
Author SHA1 Message Date
Somnath Deshmukh ab9ae82519 [ACS-11666] [MNT-25645] Implement caching technique for limiting the ACS/KeyCloak communication (#4073)
* Implemented a cache-aware authentication design using a UserTokenProvider decorator pattern, so IdentityServiceAuthenticationComponent remains cache-agnostic.

* Added DirectUserTokenProvider for Keycloak authorize + JIT provisioning and CachingUserTokenProvider for local token reuse.

* Cache now stores full validated UserToken entries in a local SimpleCache and re-validates cached tokens via identityServiceFacade.decodeToken(...).

* On decode failure (expiry/invalid token), stale entries are invalidated and the flow falls back to delegate authorization.
* Introduced UserTokenRequest and UserToken value objects to enforce cleaner interfaces and safer handling of credentials/tokens.
* Updated Spring wiring to select direct vs cached provider via identity-service.authentication.userTokenCache.enabled.

*Renamed cache bean/region/property references to the userTokenCache naming for consistency.

* Added unit coverage for direct provider, caching behavior, concurrent token-expiry refresh, and cache-enabled Spring wiring smoke tests.
2026-05-21 15:18:19 +05:30
Somnath Deshmukh 5f7dfabda6 MNT-25631 Node duplication when sorting by "Description" with multilingual metadata (#3942)
Handled multiple locale description which caused the node duplication
Refactored the filterSort() method to reduce cognitive complexity
2026-03-26 17:36:59 +05:30
Somnath-Deshmukh a49e0b2ae3 MNT-25422 Bulleted list, numbered list, and underline are not working properly when adding comment in the file. (#3624) 2025-10-30 13:26:32 +05:30
Somnath-Deshmukh b1cf78ce7c Fix/mnt 25359 Prevent XSS attack during posting a comment keeping the editor styles intact (#3623)
Fix for MNT-25359 Prevent XSS attack during posting a comment keeping the editor styles intact.
2025-10-28 15:35:34 +05:30
Somnath-Deshmukh e1baddebee Fix/mnt 25359 (#3613)
Prevent XSS attack during posting a comment
2025-10-17 10:58:02 +05:30