Firefox Account
Object representing the signed-in state of an application.
The FirefoxAccount object is the main interface provided by this crate. It represents the signed-in state of an application that may be connected to user's Firefox Account, and provides methods for inspecting the state of the account and accessing other services on behalf of the user.
Constructors
Functions
Create a new OAuth authorization code using the stored session token.
Check authorization status for this application.
Clear the access token cache in response to an auth failure.
Clear any custom display name used for this application instance.
Complete an OAuth flow.
Disconnect from the user's account.
Ensure that the device record has a specific set of capabilities.
Collect and return telemetry about incoming and outgoing device commands.
Get a short-lived OAuth access token for the user's account.
Get the list of all client applications attached to the user's account.
Get the high-level authentication state of the client
Get a URL which shows a "successfully connceted!" message.
Get the device id registered for this application.
Get the list of devices registered on the user's account.
Get a URL at which the user can manage their account and profile data.
Get a URL at which the user can manage the devices connected to their account.
Get the URL at which to begin a device-pairing signin flow.
Get profile information for the signed-in user, if any.
Returns a complete signedInUser JSON object for a WebChannel fxaccounts:fxa_status response, embedding the session token privately. Email and uid come from the cached profile in internal state. Returns null if no session token is set.
Get the URL at which to access the user's sync data.
Process and respond to a server-delivered account update message
Stores anything necessary from a WebChannel login JSON payload. This includes the session token, but that is abstracted because the consuming apps should not be aware of the specific payload format returned, nor should they get access to the session token directly if possible. The json_payload is the data object from the fxaccounts:login WebChannel command.
Handle a WebChannel password-change notification by exchanging the new session token for a new refresh token via a network call. The json_payload is the data object from the fxaccounts:change_password WebChannel command.
Create a new device record for this application.
Update the state based on authentication issues.
Poll the server for any pending device commands.
Process an event (login, logout, etc).
Use device commands to send a single tab to another device.
Update the display name used for this application instance.
Set or update a push subscription endpoint for this device.
Used by the application to test auth token issues
Used by the application to test auth token issues
Used by the application to test auth token issues