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
4 years ago
..
activitypub Add support for private pinned posts (#16954) 4 years ago
admin Add notifications for statuses deleted by moderators (#17204) 4 years ago
api Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288) 4 years ago
auth Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288) 4 years ago
concerns Remove IP tracking columns from users table (#16409) 4 years ago
oauth
settings Remove Keybase integration (#17045) 4 years ago
well_known Remove Keybase integration (#17045) 4 years ago
about_controller.rb
account_follow_controller.rb
account_unfollow_controller.rb
accounts_controller.rb Add support for private pinned posts (#16954) 4 years ago
application_controller.rb Add logging of S3-related errors (#16381) 4 years ago
authorize_interactions_controller.rb
custom_css_controller.rb Remove set-cookie header on custom.css (#16314) 5 years ago
directories_controller.rb
emojis_controller.rb
filters_controller.rb
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
home_controller.rb Change routing paths to use usernames in web UI (#16171) 4 years ago
instance_actors_controller.rb
intents_controller.rb
invites_controller.rb
manifests_controller.rb
media_controller.rb Fix error when rendering public pages with media attachments (#16763) 4 years ago
media_proxy_controller.rb Fix media proxy RedisLocks auto-releasing too fast (#16291) 5 years ago
public_timelines_controller.rb
relationships_controller.rb
remote_follow_controller.rb
remote_interaction_controller.rb
shares_controller.rb
statuses_cleanup_controller.rb Add feature to automatically delete old toots (#16529) 4 years ago
statuses_controller.rb
tags_controller.rb