1. 06 Oct, 2016 2 commits
    • Cédric Le Ninivin's avatar
      ERP5Security: Introduce to JSON Web Token Authentication Plugin · 8e92345f
      Cédric Le Ninivin authored
      ERP5Security: A small introduction to JSON Web Token Authentication
      
      ERP5Security: Expand JWT to add and process extra data while verifying password
      
      ERP5Security: Use processDataScript to validate user + clean code
      
      ERP5Security: Improve JSONWeb Token, do not set cookie on all request and handle bad signature
      
      ERP5Security: JWT Token uses HTTPOnly and Secure cookies
      
      ERP5Security: code improvments to ERP5JSONWebTokenPlugin
      
      ERP5Security: JSONWebToken Plugin use Timed Token
      
      + Various Code improvment
      
      erp5_officejs: Data is editable on spreadsheet only if it is the correct type else HTML preview is provided
      
      ERP5Security: Add testERP5JSONWebTokenPlugin
      
      ERP5Security: JSONWebTokenPlugin do not depend on python scripts + code improvments
      
      ERP5Security: Extand Test for ERP5 JSON Web Token Plugin
      8e92345f
    • Jérome Perrin's avatar
      Fix timezone problems with formprintout · 544c68e0
      Jérome Perrin authored
      When pusing to for_testrunner_1 branch, we often have this failure on testFormPrintoutAsODT:
      
      ```
      ======================================================================
      FAIL: test_field_replacement_with_variable (testFormPrintoutAsODT.TestFormPrintoutAsODT)
      test variables replacement in ODT documents.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/srv/slapgrid/slappart9/srv/testnode/zl/soft/4a13de8a0fdf926ddebab0387de0dc5e/parts/erp5/Products/ERP5OOo/tests/testFormPrintoutAsODT.py", line 1252, in test_field_replacement_with_variable
          self.assertEqual(node.text, value.strftime('%d/%m/%Y %H:%M:%S'))
      AssertionError: '06/12/2010 11:33:15' != '06/12/2010 11:24:15'
      ```
      
      After some investigation, turned out that:
      * tests where always failing when running by `COMP-2544-3Nodes-ERP5PROJECT2` testnode
      * This machine uses `SystemV/CST6CDT` as timezone
      * the test fails in the same way when running locally with `TZ=SystemV/CST6CDT`
      
      I belive this fixes, I tried running under `SystemV/CST6CDT`, `UTC` and `Europe/Paris`  TZ and it passes for all cases. 
      
      /reviewed-on !174
      544c68e0
  2. 05 Oct, 2016 19 commits
  3. 04 Oct, 2016 4 commits
  4. 03 Oct, 2016 7 commits
  5. 30 Sep, 2016 8 commits