Changes

Jump to: navigation, search

CloudServices/Sagrada/TokenServer

75 bytes added, 00:15, 12 January 2012
APIS v1.0
'''Unless stated otherwise, all APIs are using application/json for the requests and responses content types.'''
'''POST /1.0/<app_name>/request_token'''
Asks for new token given some credentials. By default, the authentication mechanism is Browser ID
but the '''X-Authentication-Protocol''' can be used to explicitly pick a protocol. If the server does not
support the authentication protocol provided, a 400 is returned.
'''app_name''' is the name of the application to access, like '''sync'''. 
When the authentication protocol requires something else than an Authorization header, the data is provided in
the request body.
<pre>
POST /1.0/sync/request_token
Host: token.services.mozilla.com
Content-Type: application/json
{'audience': XXX, 'assertion': XXX}
</pre>
Confirm
927
edits

Navigation menu