Page MenuHomePhabricator

Issued at time should be returned as a number
Closed, ResolvedPublic

Description

Calls to Special:OAuth/identify will return a web token with the Issued At Time (iat) as a string. This value should appear as a number like Expiration (exp) is.

Behavior:
{
...
"iat": "1399992248",
"exp": 1399992290,
...
}

Expected:
{
...
"iat": 1399992248,
"exp": 1399992290,
...
}

I've set the priority to "minor" since parsing the number is a simple work-around.


Version: unspecified
Severity: minor

Details

Reference
bz65260

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:24 AM
bzimport set Reference to bz65260.
bzimport added a subscriber: Unknown Object (MLST).

There is a patch for review at https://gerrit.wikimedia.org/r/#/c/133588/ but for some reason Gerrit didn't post here. Setting status manually.

Change 133588 merged by jenkins-bot:
Make iat timestamp an int instead of string

https://gerrit.wikimedia.org/r/133588

This should be deployed to WMF wikis with 1.24wmf19, see https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.