[MGNLRESTCL-107] Expiry of Bearer token is broken Created: 28/Nov/19  Updated: 07/Jan/20  Resolved: 31/Dec/19

Status: Closed
Project: REST Client
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Bug Priority: Neutral
Reporter: Jaroslav Simak Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1.75d
Original Estimate: Not Specified

Attachments: Text File patch.txt    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Declarative REST clients
Sprint: Declarative REST 12, Declarative REST 13
Story Points: 2

 Description   

Expiry of the token is calculated in wrong way. If the token expires in 24 hours (86400 seconds), then the actual resolved expiry is 1970-01-01T00:01:26.400Z.
It's because expiry is being resolved from Instant.ofEpochMilli.


Generated at Mon Feb 12 10:43:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.