Changes

Jump to: navigation, search

CloudServices/Sagrada/TokenServer

124 bytes added, 21:44, 27 January 2014
Authorization token
* '''uid''': the app-specific user id (the user id integer in the case of sync)
* '''salt''': a randomly-generated salt for use in the calculation of the Token Secret (''optional'')
* '''node''': the name of the service node to which the user is assigned
Example:
auth_token = {"uid": 123, "node": "https://sync-1.services.mozilla.com", "expires": 1324654308.907832, "salt": "sghfwq6875765..UYgs"}
The token is signed using the Signing Secret and base64-ed. The signature is HMAC-SHA1SHA256:
auth_token, signature = HMAC-SHA1SHA256(auth_token, sig_secret)
auth_token = b64encode(auth_token, signature)
Confirm
358
edits

Navigation menu