erp5_oauth2_authorisation: Do not edit OAuth2 Session on every refresh token issuance
Malevolent users may decide to only - and repeatedly - present an otherwise valid refresh token, causing the issuance of a new access tokens everytime, likely along with new refresh tokens, causing many ZODB writes. Avoid this by pushing the token expiration date by one lifespan accuracy, so there can only be one write per session per lifespan accuracy period.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#725690
external
|
ERP5.CodingStyleTest-Master |
03:33:53
|
||||||
passed |
#725375
external
|
ERP5.CodingStyleTest-TestRunner1 |
01:47:00
|
||||||
failed |
#725642
external
|
ERP5.PerformanceTest-Master |
00:35:46
|
||||||
failed |
#725370
external
|
ERP5.PerformanceTest-TestRunner1 |
00:35:16
|
||||||
failed |
#725784
external
|
ERP5.UnitTest-Master |
04:51:59
|
||||||
passed |
#725746
external
|
ERP5.UnitTest-TestRunner1 |
04:03:29
|
||||||
passed |
#725718
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:32:29
|
||||||
passed |
#725770
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:30:23
|
||||||
passed |
#725807
external
|
Wendelin.UnitTest-Master |
00:44:19
|
||||||
passed |
#725605
external
retried
|
ERP5.PerformanceTest-Master |
00:35:21
|
||||||
failed |
#725369
external
retried
|
ERP5.UnitTest-TestRunner1 |
05:31:41
|
||||||
passed |
#725384
external
retried
|
ERP5.UnitTest-TestRunner1 |
03:01:09
|
||||||
passed |
#725500
external
retried
|
ERP5.UnitTest-TestRunner1 |
11:00:01
|
||||||
passed |
#725634
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:24:23
|
||||||
passed |
#725597
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:23:15
|
||||||
passed |
#725585
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:26:00
|
||||||
passed |
#725754
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:26:52
|
||||||
passed |
#725651
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:26:24
|
||||||
passed |
#725706
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:28:43
|
||||||
passed |
#725694
external
retried
|
Wendelin.UnitTest-Master |
01:10:36
|
||||||