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 user registration endpoint #176

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

[autoendpoint] Support user registration endpoint #176

AzureMarker opened this issue Jul 10, 2020 · 0 comments · Fixed by #185 or #231
Assignees
Labels
5 Estimate - Medium

Comments

@AzureMarker
Copy link
Contributor

Endpoint: POST /v1/{type}/{app_id}/registration
Documentation: https://autopush.readthedocs.io/en/latest/http.html#registration

Registers a user with a bridge router.

Questions:

  • The Python code appears to support registering WebPush clients via this endpoint. Should this still be supported, since they should instead be registered when connecting via WebSocket to the connection server?
@AzureMarker AzureMarker added the 5 Estimate - Medium 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 15, 2020 that will close this issue
AzureMarker added a commit that referenced this issue Jul 27, 2020
* Add a stub handler for the registration endpoint

* Add extractors for registration endpoints

Also we now use the `Bytes` and `Json` extractors to read the payload.
The payload size limit is configured through the respective extractor
config objects.

* Increment ua.command.register metric

* Implement router registration

* Store the user in the database during registration

* Add the channel to the database and accept more data in the request body

* Move make_endpoint to the common code and use in user registration

* Generate a secret for future requests and return the registration data

* Fix an incorrect expression value and missing current_month value

* Support compiling with OpenSSL 1.0

The `sign_oneshot_to_vec` method is only available with OpenSSL >=1.1.1.

* Add logging to register_uaid_route

* Use hyphenated UUIDs in the message table "chids" column

* Fix errors after rebase

* Simplify endpoint creation

* Use the lowercase hyphenated formatter (default) when returning UUIDs

Closes #176

Co-authored-by: JR Conlin <[email protected]>
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
5 Estimate - Medium
Projects
None yet
1 participant