ctrl-space-labs / gendox-core

Gendox: "Generate. Train. Evolve."
GNU Affero General Public License v3.0
5 stars 0 forks source link

Populate UserProfile for API token authentication #356

Open sekasx opened 2 weeks ago

sekasx commented 2 weeks ago

Description

API token authentication has been added in gendox, and the appropriate Spring security components have been added according to #355.

The /profile API should return the profile even if the authentication method is the API token and not an actual user with JWT To reproduce this, add the Header in the request: x-api-key: gxsk-1234

As part of this ticket, the method OrganizationService#getOrganizationProfileById should be implemented to calculate the UserProfile object for the requested organization in the role specified.

sekasx commented 1 week ago

branch 355