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/app/controllers
Claire bddd9ba36d
Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288)
* Remove support for OAUTH_REDIRECT_AT_SIGN_IN

Fixes #15959

Introduced in #6540, OAUTH_REDIRECT_AT_SIGN_IN allowed skipping the log-in form
to instead redirect to the external OmniAuth login provider.

However, it did not prevent the log-in form on /about introduced by #10232 from
appearing, and completely broke with the introduction of #15228.

As I restoring that previous log-in flow without introducing a security
vulnerability may require extensive care and knowledge of how OmniAuth works,
this commit removes support for OAUTH_REDIRECT_AT_SIGN_IN instead for the time
being.

* Add OMNIAUTH_ONLY environment variable to enforce external log-in only

* Disable user registration when OMNIAUTH_ONLY is set to true

* Replace log-in links When OMNIAUTH_ONLY is set with exactly one OmniAuth provider
3 years ago
..
activitypub Add support for private pinned posts (#16954) 3 years ago
admin Add notifications for statuses deleted by moderators (#17204) 3 years ago
api Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288) 3 years ago
auth Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288) 3 years ago
concerns Remove IP tracking columns from users table (#16409) 3 years ago
oauth Refactor settings controllers (#14767) 5 years ago
settings Remove Keybase integration (#17045) 3 years ago
well_known Remove Keybase integration (#17045) 3 years ago
about_controller.rb Add server rules (#15769) 4 years ago
account_follow_controller.rb Add specific rate limits for posting and following (#13172) 5 years ago
account_unfollow_controller.rb
accounts_controller.rb Add support for private pinned posts (#16954) 3 years ago
application_controller.rb Add logging of S3-related errors (#16381) 4 years ago
authorize_interactions_controller.rb Add specific rate limits for posting and following (#13172) 5 years ago
custom_css_controller.rb Remove set-cookie header on custom.css (#16314) 4 years ago
directories_controller.rb Change trending hashtags to be affected be reblogs (#16164) 4 years ago
emojis_controller.rb
filters_controller.rb Sort filters by “keyword or phrase” in Settings (#15050) 4 years ago
follower_accounts_controller.rb Fix serialization of followers/following counts when user hides their network (#16418) 4 years ago
following_accounts_controller.rb Fix serialization of followers/following counts when user hides their network (#16418) 4 years ago
health_controller.rb Change health check (#15988) 4 years ago
home_controller.rb Change routing paths to use usernames in web UI (#16171) 3 years ago
instance_actors_controller.rb Create instance actor if it hasn't been properly seeded (#15693) 4 years ago
intents_controller.rb
invites_controller.rb
manifests_controller.rb
media_controller.rb Fix error when rendering public pages with media attachments (#16763) 3 years ago
media_proxy_controller.rb Fix media proxy RedisLocks auto-releasing too fast (#16291) 4 years ago
public_timelines_controller.rb
relationships_controller.rb Add interrelationship icon (#15149) 4 years ago
remote_follow_controller.rb
remote_interaction_controller.rb Fix functional user requirements in whitelist mode (#14093) 5 years ago
shares_controller.rb
statuses_cleanup_controller.rb Add feature to automatically delete old toots (#16529) 4 years ago
statuses_controller.rb Fix error when trying to render component for media without meta (#16112) 4 years ago
tags_controller.rb Refactor how public and tag timelines are queried (#14728) 5 years ago