Commit Graph

10457 Commits (master)

Author SHA1 Message Date
multiple creatures f03960382b switch (back) to postgres fts engine for fast search & timeline filters 2020-01-10 03:45:29 -06:00
multiple creatures 4c8591fbea dump schema to plain sql 2020-01-10 00:35:53 -06:00
multiple creatures d0769f0309 monsterpit says trans rights!!! 2020-01-04 10:17:43 -06:00
ntl-purism 244a90b45e LDAP & PAM added to OAuth password grant strategy (#7999) (#12390)
When authenticating via OAuth, the resource owner password grant
strategy is allowed by Mastodon, but (without this PR), it does not
attempt to authenticate against LDAP or PAM. As a result, LDAP or PAM
authenticated users cannot sign in to Mastodon with their
email/password credentials via OAuth (for instance, for native/mobile
app users).

This PR fleshes out the authentication strategy supplied to doorkeeper
in its initializer by looking up the user with LDAP and/or PAM when
devise is configured to use LDAP/PAM backends. It attempts to follow the
same logic as the Auth::SessionsController for handling email/password
credentials.

Note #1: Since this pull request affects an initializer, it's unclear
how to add test automation.

Note #2: The PAM authentication path has not been manually tested. It
was added for completeness sake, and it is hoped that it can be manually
tested before merging.
2019-12-31 02:41:24 -06:00
Mathieu Brunot decc593faa Remove quotes in `LDAP_SEARCH_FILTER` example (#12019) 2019-12-31 02:38:35 -06:00
multiple creatures b0d821b95a lazily add `safety_assured` to allow some migrations to work in prod 2019-12-28 14:03:38 -06:00
multiple creatures f12d9d27fc fix `queued:boosts` & `queued:posts` breaking if populated 2019-12-23 23:51:43 -06:00
multiple creatures b50fd96131 add next scheduled seconds to `queued:boosts` 2019-12-23 23:44:55 -06:00
multiple creatures 276b230019 set footers on service dms 2019-12-23 12:08:26 -06:00
multiple creatures 7d0d9c05c5 fix tired admin typo 2019-12-23 12:03:48 -06:00
multiple creatures cb45e721ec add `queued:boosts` & `queued:posts` bangtags 2019-12-23 12:00:35 -06:00
multiple creatures 806199ed4a add virtual scopes for `#``self.boosts` (your boosts) & `#``self.home.boosts` (boosts on your home timeline) 2019-12-21 15:25:32 -06:00
multiple creatures 5f92c6429f add option to only apply phrase filters to timelines 2019-12-21 13:59:38 -06:00
multiple creatures 8312a6e510 add option to use phrase filters as an allow list 2019-12-21 13:22:18 -06:00
multiple creatures b8f7ccf227 add option to set mutes that apply only to timelines 2019-12-21 12:08:49 -06:00
multiple creatures 82f98a770b rework hide boosts / show only packmates options to work with timeline streaming 2019-12-19 20:48:20 -06:00
multiple creatures 32d998b623 add preference options to a: hide boosts globally, & b: show only packmates across all timelines - works in all client apps 2019-12-19 19:41:02 -06:00
multiple creatures 1fecec8fb6 remove now-unsed `no_body` translation string 2019-12-19 09:46:02 -06:00
multiple creatures 5a08b14186 drop check for mentions-only posts 2019-12-19 09:33:58 -06:00
multiple creatures 8635ba66f4 remove prefix from the `bangtag` bangtag 2019-12-17 21:51:19 -06:00
multiple creatures 5cd462c59d fix the `bangtag` bangtag but actually 2019-12-17 21:46:26 -06:00
multiple creatures 5aeb5bc726 when applying user filters only `select` columns from the `statuses` table 2019-12-17 20:55:58 -06:00
multiple creatures d8a5574730 remove unused `preload_media` 2019-12-17 20:50:36 -06:00
multiple creatures 7cd4f2515b fix `bangtag` bangtag 2019-12-17 20:04:53 -06:00
multiple creatures 83c7e5ec11 Merge branch 'master' of monsterware.dev:monsterpit/mastodon 2019-12-14 10:06:40 -06:00
multiple creatures 51c376cc00 use redis lock instead of rolling own 2019-12-14 10:05:52 -06:00
multiple creatures b93ea600c5 fix no body text error 2019-12-14 13:49:39 +00:00
multiple creatures 026b0626cf sync with `on_behalf_of` + bump max pages 2019-12-13 14:52:29 -06:00
multiple creatures 4b0612c11d improve normalization 2019-12-13 00:43:20 -06:00
multiple creatures a547f442e0 skip unchanged rows 2019-12-13 00:42:32 -06:00
multiple creatures 9157a28b1a strip mentions from normalized text 2019-12-12 12:12:33 -06:00
multiple creatures 518b2ff788 include "do not interact" as a trigger for infering no replies mode 2019-12-12 11:37:09 -06:00
multiple creatures 5464e5a0b7 avoid letting folks kick themselves out of their own threads 2019-12-12 11:12:43 -06:00
multiple creatures 1633268293 avoid posting when body only has mentions it 2019-12-12 11:10:11 -06:00
multiple creatures 5cf03910f7 use `origin` prop for imported announces 2019-12-12 10:08:41 -06:00
multiple creatures e52ed3b6e9 only pass account id into scope instead of whole account object 2019-12-12 09:53:50 -06:00
multiple creatures dc8e5eae2c better key constraints on imported statuses, sharekeys, & normalized statuses tables 2019-12-12 05:38:08 -06:00
multiple creatures 7d0e47f837 periodically clean up filter caches 2019-12-12 05:28:56 -06:00
multiple creatures 9211a9ef58 add `thread:kick` & `thread:unkick` bangtags, alias them to `kick` & `unkick` 2019-12-12 04:49:50 -06:00
multiple creatures b36ab3443a revise post service to check for kicked status before posting, handle out-of-body mentions, & let the post worker deal with finalizing + delivery 2019-12-12 04:48:28 -06:00
multiple creatures a8713ee8b7 add ability for post authors to kick jerks out of their threads 2019-12-12 04:38:56 -06:00
multiple creatures 90373b7f31 use service account helper in janitor scheduler 2019-12-12 04:36:05 -06:00
multiple creatures 114fc3cdd0 simplify the asynchronous post worker 2019-12-12 04:33:51 -06:00
multiple creatures 49c7092f7e make it possible to process & send out mentions in separate steps 2019-12-12 04:32:38 -06:00
multiple creatures 2be54072b1 add service account helper to make announcer & janitor posting easier 2019-12-12 04:29:25 -06:00
multiple creatures a8b4d5316c remove duplicate post distribution calls 2019-12-12 04:24:07 -06:00
multiple creatures 452237335b make reindex tasks using new normalized text table 2019-12-12 04:23:04 -06:00
multiple creatures dd7e1fb2b0 remove unused filter helper 2019-12-11 23:54:54 -06:00
multiple creatures dae7cda4ab move sharekeys & import metadata to own tables 2019-12-11 22:00:22 -06:00
multiple creatures 9a435494c2 move normalized text into own table 2019-12-11 20:04:53 -06:00