Remove profile-organization retrieval from validate

In the current implementation we are retrieving profile and organization related to active user every time we are validating a request. This means doing a request to Profile MS every time our BE receives a request.

Additionally, profile and organization info are not needed in most of the cases (class User is referenced more than 1000 times, but user.profile and user.organization are referenced only in few cases).

The suggested solution is to remove profile-organization retrieval from LocalStrategy.validate and retrieve them only when needed

DomainAuthN-Z
Actionrefactor
DepartmentBackend

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🛠️

Bug & Fixes

Tags

Low Priority

Date

Over 1 year ago

Author

Ivan Ligotino

Subscribe to request

Get notified by email when there are changes.