You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/config/initializers
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
6 years ago
..
0_post_deployment_migrations.rb Add post-deployment migration system (#8182) 6 years ago
1_hosts.rb Set Content-Security-Policy rules through RoR's config (#8957) 6 years ago
active_model_serializers.rb Disable AMS logging (#7623) 7 years ago
application_controller_renderer.rb Upgrade to Rails 5.0.0.1 9 years ago
assets.rb HTML e-mails for UserMailer (#6256) 7 years ago
backtrace_silencers.rb Initial commit 9 years ago
blacklists.rb Quick best practice cleanup of views/helpers (#1546) 8 years ago
chewy.rb Fix #6509: Use pull queue for chewy jobs (#6513) 7 years ago
content_security_policy.rb Add manifest_src to CSP, add blob to connect_src (#8967) 6 years ago
cookies_serializer.rb Upgrade to Rails 5.0.0.1 9 years ago
cors.rb Use same CORS policy for /@:username and /users/:username (#9485) 6 years ago
delivery_job.rb Skip mailer job retries when a record no longer exists (#9590) 6 years ago
devise.rb feat(cookies): Use the same-site attribute to lax (#8626) 6 years ago
doorkeeper.rb Add unread indicator to conversations (#9009) 6 years ago
fast_blank.rb fix can toot whitespace (#2218) 8 years ago
ffmpeg.rb add ffmpeg initializer (#8855) 6 years ago
filter_parameter_logging.rb Added optional two-factor authentication 8 years ago
http_client_proxy.rb lint pass 2 (#8878) 6 years ago
httplog.rb Version bumps for ruby and misc gems (#1159) 8 years ago
inflections.rb Add ActivityPub inbox (#4216) 8 years ago
instrumentation.rb Improve StatsD instrumentation 8 years ago
json_ld.rb Preload common JSON-LD contexts (#9412) 6 years ago
kaminari_config.rb adjust public profile pages 2 (#5223) 7 years ago
mime_types.rb Set correct content-type for ActivityPub JSON (#4592) 8 years ago
oj.rb Remove rabl dependency (#5894) 7 years ago
omniauth.rb lint pass 2 (#8878) 6 years ago
open_uri_redirection.rb rubocop issues - Cleaning up (#8912) 6 years ago
pagination.rb Pagination improvements (#1445) 8 years ago
paperclip.rb Rename S3_CLOUDFRONT_HOST to S3_ALIAS_HOST. (#8423) 6 years ago
premailer_rails.rb HTML e-mails for UserMailer (#6256) 7 years ago
rack_attack.rb Add REST API for creating an account (#9572) 6 years ago
rack_attack_logging.rb Log rate limit hits (#7096) 7 years ago
redis.rb Set config.cache_store in environments file. (#3219) 8 years ago
session_activations.rb Revocable sessions (#3616) 8 years ago
session_store.rb feat(cookies): Use the same-site attribute to lax (#8626) 6 years ago
sidekiq.rb lint pass 2 (#8878) 6 years ago
simple_form.rb Redesign forms, verify link ownership with rel="me" (#8703) 6 years ago
single_user_mode.rb Add single user mode 8 years ago
statsd.rb Fix that Rails.cache information could not be sent via StatsD (#8831) 6 years ago
stoplight.rb Add a circuit breaker for ActivityPub deliveries (#7053) 7 years ago
strong_migrations.rb Fix migration failure due to StrongMigrations on production env (#5283) 7 years ago
suppress_csrf_warnings.rb Suppress CSRF token warnings (#6240) 7 years ago
trusted_proxies.rb Fix error 8 years ago
twitter_regex.rb Lint pass (#8876) 6 years ago
vapid.rb Lint pass (#8876) 6 years ago
wrap_parameters.rb Upgrade to Rails 5.0.0.1 9 years ago