chinwagsocial/spec
Eugen Rochko 5d2fc6de32
Add REST API for creating an account (#9572)
* Add REST API for creating an account

The method is available to apps with a token obtained via the client
credentials grant. It creates a user and account records, as well as
an access token for the app that initiated the request. The user is
unconfirmed, and an e-mail is sent as usual.

The method returns the access token, which the app should save for
later. The REST API is not available to users with unconfirmed
accounts, so the app must be smart to wait for the user to click a
link in their e-mail inbox.

The method is rate-limited by IP to 5 requests per 30 minutes.

* Redirect users back to app from confirmation if they were created with an app

* Add tests

* Return 403 on the method if registrations are not open

* Require agreement param to be true in the API when creating an account
2018-12-24 19:12:38 +01:00
..
controllers Add REST API for creating an account (#9572) 2018-12-24 19:12:38 +01:00
fabricators Add REST API for creating an account (#9572) 2018-12-24 19:12:38 +01:00
features rubocop issues - Cleaning up (#8912) 2018-10-08 04:50:11 +02:00
fixtures Ignore low-confidence CharlockHolmes guesses when parsing link cards (#9510) 2018-12-17 19:19:45 +01:00
helpers Add specs for Admin::AccountModerationNotesHelper (#9455) 2018-12-07 16:39:20 +01:00
lib Fix connect timeout not being enforced (#9329) 2018-11-22 20:12:04 +01:00
mailers Add moderation warnings (#9519) 2018-12-22 20:02:09 +01:00
models Add REST API for creating an account (#9572) 2018-12-24 19:12:38 +01:00
policies Add specs for ReportNotePolicy (#9592) 2018-12-20 17:52:18 +01:00
presenters Add specs for InstancePresenter (#9596) 2018-12-21 08:59:56 +01:00
requests Use raw status code on have_http_status (#7214) 2018-04-21 21:35:07 +02:00
routing Move create/destroy actions for api/v1/statuses to namespace (#3678) 2017-06-10 09:39:26 +02:00
services Add REST API for creating an account (#9572) 2018-12-24 19:12:38 +01:00
support Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
validators Improve e-mail MX validator and add tests (#9489) 2018-12-10 22:53:25 +01:00
views Replace SVG asset with Custom mascot (#8766) 2018-10-08 00:20:45 +02:00
workers Lists (#5703) 2017-11-18 00:16:48 +01:00
rails_helper.rb rubocop issues - Cleaning up (#8912) 2018-10-08 04:50:11 +02:00
spec_helper.rb Disable simplecov on CircleCI (#7416) 2018-05-09 16:59:58 +02:00