bcgov / lcfs

An online application for fuel suppliers to manage their compliance obligations under the Low Carbon Fuels Act
Apache License 2.0
5 stars 3 forks source link

LCFS - Implement 'current_user' Endpoint in FastAPI Middleware for User and Organization Data Retrieval #173

Closed AlexZorkin closed 9 months ago

AlexZorkin commented 10 months ago

Describe the task Develop a new endpoint named 'current_user' in the FastAPI middleware. This endpoint should fetch the mapped user's information from the database, relying on the user token ID present in the auth token of the request header. The returned data should include comprehensive user information and the organization they belong to.

Purpose To provide authenticated users with an efficient and secure way to access their complete profile information and associated organization details, enhancing user experience and streamlining data retrieval operations for frontend applications.

Acceptance Criteria

Additional context

AlexZorkin commented 10 months ago

Hey team! Please add your planning poker estimate with Zenhub @hvalioll @jig-patel @kevin-hashimoto @prv-proton

justin-lepitzki commented 9 months ago

Nothing for PO to test