Uploaded image for project: 'Qt Cloud'
  1. Qt Cloud
  2. CLOUD-370

All GET and POST requests in the dashboard plugin should use access token

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Backend , Dashboard
    • None

      Right now, the communication between the browser and the "plugin" server runs over HTTP, which is OK because it is local. However, all the "network" communication should happen by using a token. This token should be generated everytime the server is started and should be destroyed after the server is closed. The "/get-token" should also return this token to the JavaScript. 

       

      Alternate (and possibly preferred method):

      We can use the gitlab_private_token which is returned to JS using `/get-token` method.  This token is sent as "PRIVATE-TOKEN: token" as header in all requests. We should check all incoming requests in the fastapi server that they contain this PRIVATE-TOKEN as the header. 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            as33ms Aseem Shakuntal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes