-
Notifications
You must be signed in to change notification settings - Fork 254
Bug 2012143 - Token exchange API #7179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| } | ||
| // Get the updated refresh token from state. | ||
| refresh_token = match self.state.refresh_token() { | ||
| None => return Err(Error::NoCachedToken(scope.to_string())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like this error variant is misnamed, but it's already used to for scope issues in the code below so I guess we can just stick with it for now.
|
This is not working yet, we need mozilla/fxa#19928 to be merged first. Once that's merged, you should be able to test it out with |
7d14cf4 to
e67956c
Compare
* Implemented the token exchange API. * Added fxa-client CLI command to test the API. * Updated the logging so that we can use the CLI to trace the requests. * Added a constant for the relay scope and made the `scopes` module public. * Added support for specifying custom FxA servers in the CLI
e67956c to
2af727a
Compare
| /// | ||
| /// The token server URL can be used to get the URL and access token for the user's sync data. | ||
| /// | ||
| /// **💾 This method alters the persisted account state.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies if this is normal in the app-services rust code, but I think the floppy disk emoji should be removed here.
scopesmodule public.Pull Request checklist
[ci full]to the PR title.