authorizer/TODO.md
2021-12-24 06:27:39 +05:30

1.2 KiB

Task List

Open ID compatible claims and schema

  • Rename schema.graphqls and re generate schema
  • Rename to snake case [files + schema]
  • Refactor db models
  • Check extra data in oauth profile and save accordingly
  • Update all the resolver to make them compatible with schema changes
  • Update JWT claims
  • Write integration tests for all resolvers

Feature Multiple sessions

  • Multiple sessions for users to login use hMset from redis for this user_id access_token1 long_live_token1 user_id access_token2 long_live_token2

Feature roles

For the first version we will only support setting roles master list via env

  • Support following ENV
    • ROLES -> comma separated list of role names
    • DEFAULT_ROLE -> default role to assign to users
  • Add roles input for signup
  • Add roles to update profile mutation
  • Add roles input for login
  • Return roles to user
  • Return roles in users list for super admin
  • Add roles to the JWT token generation
  • Validate token should also validate the role, if roles to validate again is present in request

Misc

  • Fix email template
  • Add support for organization name in .env
  • Add support for organization logo in .env