Skip to content
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

[autoendpoint] Support token update endpoint #177

Closed
AzureMarker opened this issue Jul 10, 2020 · 0 comments · Fixed by #188 or #231
Closed

[autoendpoint] Support token update endpoint #177

AzureMarker opened this issue Jul 10, 2020 · 0 comments · Fixed by #188 or #231
Assignees
Labels
2 Estimate - Small

Comments

@AzureMarker
Copy link
Contributor

Endpoint: PUT /v1/{type}/{app_id}/registration/{uaid}
Documentation: https://autopush.readthedocs.io/en/latest/http.html#token-updates

Updates the user's bridge token.

@AzureMarker AzureMarker added the 2 Estimate - Small label Jul 10, 2020
@AzureMarker AzureMarker added this to the Autoendpoint Rust Server milestone Jul 10, 2020
@AzureMarker AzureMarker self-assigned this Jul 10, 2020
@AzureMarker AzureMarker linked a pull request Jul 17, 2020 that will close this issue
AzureMarker added a commit that referenced this issue Jul 27, 2020
* Stub the update token endpoint

* Add the registration endpoint authorization check

* Add RegistrationPathArgsWithUaid to validate the user exists

* Implement update_token_route and add DbClient::update_user

* Fix setting the UAID in DbClient::update_user

It is an error to try and set the primary key of a row via UpdateItem.

* Use the actual UUID bytes (vs str bytes) when checking authorization

* Make the registration auth scheme check case-insensitive

* Fix errors after rebase

Closes #177
This was referenced Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 Estimate - Small
Projects
None yet
1 participant