stable

Clone or download

Read-only

request #8703 Kanban real time security to NodeJs server diffuse messages

Purposes: - Reload kanban when NodeJS server detect that the JWT is expired - Tuleap puts user rights on JWT - Tuleap puts for an action (move or add card) who has the right to see - For the moment we don't manage the rights where we need to know if the user is a submitter or the recipient - NodeJS server checks the rights for client before sending a message To test: Pull the git repository nodejs/tuleap-realtime on tuleap.net Moreover to test the behavior when the JWT is expired: You can load a client with a duration of the token at 30 minutes and an other client with a duration at 1 minute. You can change it in JWTenerator.php file. Change-Id: I598272b3b0da9065adc08be54dadeda218a913df

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanItemsResource.php +15 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanResource.php +45 −15 Go to diff View file
M plugins/agiledashboard/www/js/kanban/po/template.pot +6 −6 Go to diff View file
M plugins/agiledashboard/www/js/kanban/src/app/app-kanban-controller.js +32 −25 Go to diff View file
M plugins/agiledashboard/www/js/kanban/src/app/app-main-controller.js +1 −0 Go to diff View file
M plugins/agiledashboard/www/js/kanban/src/app/shared-properties/shared-properties-service.js +12 −1 Go to diff View file
M plugins/agiledashboard/www/js/kanban/src/app/socket/socket-factory.js +7 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/Permission/PermissionSerializer.class.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker/Permission/PermissionSerializerTest.php +2 −2 Go to diff View file
M src/common/JWT/REST/v1/JWTResource.class.php +10 −6 Go to diff View file
M src/common/JWT/generators/JWTGenerator.php +23 −13 Go to diff View file
M src/common/realTime/Client.php +2 −1 Go to diff View file
M src/common/realTime/NodeJSClient.php +3 −1 Go to diff View file
A tests/simpletest/common/JWT/generators/JWTGeneratorTest.php +55 −0 Go to diff View file