Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Definitions for vars

5 views
Skip to first unread message

Hola

unread,
Mar 25, 2012, 10:06:34 PM3/25/12
to
Where can I see the definitions for the response vars?
For instance, the expires time makes no sense, turned to a date it is
Wednesday 9th of March 1994 02:51:33 PM

Also, where can I see all the allowed options for browseridArguments?
I came across privacyURL and tosURL, what else is there?

Hola

unread,
Mar 25, 2012, 10:08:19 PM3/25/12
to

Francois Marier

unread,
Mar 25, 2012, 10:25:19 PM3/25/12
to dev-id...@lists.mozilla.org
On 2012-03-25 at 19:06:34, Hola wrote:
> Where can I see the definitions for the response vars?
> For instance, the expires time makes no sense, turned to a date it is
> Wednesday 9th of March 1994 02:51:33 PM

If you're talking about the dates returned by the verifier, they are in the
common UNIX epoch style, but in milliseconds instead of seconds.

Here's a bit of Python code that decodes them:

https://github.com/fmarier/browserid-tools/blob/master/common.py#L26

Cheers,
Francois

--
Francois Marier identi.ca/fmarier
http://fmarier.org twitter.com/fmarier

Hola

unread,
Mar 25, 2012, 10:44:13 PM3/25/12
to mozilla.de...@googlegroups.com, dev-id...@lists.mozilla.org
Oh WTH, its supposed to be seconds. No wonder PHP is returning a crazy date.
And I finally found this!
https://developer.mozilla.org/en/BrowserID/Remote_Verification_API
You should say its milliseconds on there, and link to that page from github.

Hola

unread,
Mar 25, 2012, 10:44:13 PM3/25/12
to dev-id...@lists.mozilla.org
0 new messages