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

Domain
AuthN-Z
Action
refactor
Department
Backend

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
๐Ÿ› ๏ธ

Bug & Fixes

Tags

Low Priority

Date

11 months ago

Author

Ivan Ligotino

Subscribe to post

Get notified by email when there are changes.