mastodon/spec/fabricators
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
..
access_token_fabricator.rb
accessible_access_token_fabricator.rb
account_domain_block_fabricator.rb
account_fabricator.rb Lint pass (#8876) 2018-10-04 12:36:53 +02:00
account_moderation_note_fabricator.rb
account_pin_fabricator.rb Public profile endorsements (accounts picked by profile owner) (#8146) 2018-08-09 09:56:53 +02:00
account_stat_fabricator.rb
account_tag_stat_fabricator.rb
account_warning_fabricator.rb
account_warning_preset_fabricator.rb Add moderation warnings (#9519) 2018-12-22 20:02:09 +01:00
admin_action_log_fabricator.rb Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
application_fabricator.rb
backup_fabricator.rb Account archive download (#6460) 2018-02-21 23:21:32 +01:00
block_fabricator.rb add more tests to models 2017-04-05 00:29:56 +02:00
conversation_account_fabricator.rb
conversation_fabricator.rb
conversation_mute_fabricator.rb Feature conversations muting (#3017) 2017-05-15 03:04:13 +02:00
custom_emoji_fabricator.rb
custom_filter_fabricator.rb
domain_block_fabricator.rb Cover Admin::DomainBlocksController more (#3329) 2017-06-25 21:42:36 +02:00
email_domain_block_fabricator.rb
favourite_fabricator.rb Delete records in smaller transaction (#2802) 2017-05-04 23:44:39 +02:00
follow_fabricator.rb
follow_request_fabricator.rb
identity_fabricator.rb CAS + SAML authentication feature (#6425) 2018-02-04 05:42:13 +01:00
import_fabricator.rb
invite_fabricator.rb
list_account_fabricator.rb
list_fabricator.rb
media_attachment_fabricator.rb Update fabricator for MediaAttachment to attach a file according to type (#3862) 2017-06-20 20:40:45 +02:00
mention_fabricator.rb
mute_fabricator.rb
notification_fabricator.rb
relay_fabricator.rb
report_fabricator.rb
report_note_fabricator.rb
session_activation_fabricator.rb Add tests for SessionActivation (#5668) 2017-11-13 09:54:48 +09:00
setting_fabricator.rb
site_upload_fabricator.rb
status_fabricator.rb
status_pin_fabricator.rb
status_stat_fabricator.rb
stream_entry_fabricator.rb Cover ApplicationController more in spec (#3230) 2017-05-22 17:58:57 +02:00
subscription_fabricator.rb Spec coverage and refactor for pubsub/delivery worker (#3021) 2017-05-12 20:35:36 +02:00
tag_fabricator.rb Ensure unique identifiers in fabricated objects in tests (#3173) 2017-05-20 17:09:40 +02:00
user_fabricator.rb
web_push_subscription_fabricator.rb
web_setting_fabricator.rb