Skip to content

mozilla-services/server-whoami

Repository files navigation

Simple account-information retrieval API

This is a simple stand-alone server that allows an authenticated user to retreive their userid and syncNode from the firefox sync account database. We plan to use it internally for caching-proxying some authentication data into AWS.

It exposes a single API endpoint:

GET /whoami

Returns a JSON mapping of account data for the user identified in the Authorization header. The mapping will have the following entries:

  • userid: integer, internal numeric user identifier
  • syncNode: string, the user's currently-assigned sync node

Possible errors:

  • 401: the provided auth credentials were not correct
  • 503: there was an error getting the information

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published