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
ntl-purism f3a93987b6 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.
5 years ago
..
environments Add SMTP reply_to option (#11718) 5 years ago
initializers LDAP & PAM added to OAuth password grant strategy (#7999) (#12390) 5 years ago
locales Improve notifications page (#12497) 5 years ago
webpack Bump webpacker from 4.0.7 to 4.2.0 (#12416) 5 years ago
application.rb Fix localization test failing due to order of locale definitions (#12393) 5 years ago
boot.rb Fix bootsnap cache directory being declared relatively (#9511) 6 years ago
brakeman.ignore Add type, limit, offset, min_id, max_id, account_id to search API (#10091) 6 years ago
database.yml config: add DB_SSLMODE for managed/remote PG (#10210) 6 years ago
deploy.rb Bump capistrano from 3.11.1 to 3.11.2 (#12012) 5 years ago
environment.rb Make PreviewCard records reuseable between statuses (#4642) 8 years ago
i18n-tasks.yml Fix inconsistent interpolations test by ignoring single plural keys (#12394) 5 years ago
navigation.rb Fix relays UI being available in whitelist/secure mode (#11963) 5 years ago
pghero.yml Use override_csp options on pghero (#12489) 5 years ago
puma.rb Add PERSISTENT_TIMEOUT option (#11756) 5 years ago
routes.rb Add bookmarks (#7107) 5 years ago
secrets.yml Upgrade to Rails 5.0.0.1 9 years ago
settings.yml Add setting for whether to crop images in unexpanded toots (#12126) 5 years ago
sidekiq.yml Change trending hashtags to not disappear instantly after midnight (#11712) 5 years ago
themes.yml More polished light theme (#7620) 7 years ago
webpacker.yml Bump webpacker from 3.5.5 to 4.0.2 (#10277) 6 years ago