GodelTech/auth-service

Refactor `UserInfo` service

Closed this issue · 0 comments

Refactor UserInfo service to make use of a more robust and versatile data model. Primary areas of impovement:

  • Leave UserRepository with just the db query methods and move any data manipulation logic to UserInfoService
  • Add a straightforward mechanism for scope resolution
  • Use a single pydantic model for user info as a DTO and response model for the endpoint
  • Reduce the amount of dict manipulation