Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Register a device_id in the /v2/register flow. #937
Conversation
richvdh
assigned
dbkr
Jul 20, 2016
dbkr
merged commit 742056b
into
develop
Jul 20, 2016
8 of 10 checks passed
richvdh
deleted the
rav/register_device_on_register
branch
Jul 20, 2016
dbkr
commented on the diff
Jul 20, 2016
| @@ -236,7 +237,7 @@ def on_POST(self, request): | ||
| add_email = True | ||
| result = yield self._create_registration_details( | ||
| - registered_user_id | ||
| + registered_user_id, body |
dbkr
Member
|
richvdh commentedJul 20, 2016
This doesn't cover all of the registration flows, but it does cover the most
common ones: in particular: shared_secret registration, appservice
registration, and normal user/pass registration.
Pull device_id from the registration parameters. Register the device in the
devices table. Associate the device with the returned access and refresh
tokens. Profit.