dto-btn / ssc-assistant

Second iteration of the SSC chatbot/assistant
MIT License
2 stars 1 forks source link

71 add api token to database when logging conversation or user id if forced logged in or both #103

Closed GuillaumeTurcotte closed 4 months ago

GuillaumeTurcotte commented 4 months ago

semi temp solution that decodes and verify the id token of the logged in user to store the oid and sub props from the jwt token in the database when logging messages/conversation.

This is the first phase. The next iteration should aim to:

  1. properly setup/modifiy an app registrsation with proper API scopes for our API
  2. remove the API dual validation of flask_httpauth to migrate from reading from two headers down to just the Authorization Bearer token.
  3. frontend would have the user request for a access token that would contain the proper scope(s) for the API
  4. setup necessary TF configuration for dev domain (along with everything so far) so we can replicate on "prod'