1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/applications/auth/controller/config
epriestley e1a9473eda Make auth provider autologin modular and implement it for all OAuth2 adapters
Summary:
Ref T10785. Around the time we launched Phacility SAAS we implemented this weird autologin hack. It works fine, so clean it up, get rid of the `instanceof` stuff, and support it for any OAuth2 provider.

(We could conceivably support OAuth1 as well, but no one has expressed an interest in it and I don't think I have any OAuth1 providers configured correctly locally so it would take a little bit to set up and test.)

Test Plan:
  - Configured OAuth2 adapters (Facebook) for auto-login.
  - Saw no config option on other adapters (LDAP).
  - Nuked all options but one, did autologin with Facebook and Phabricator.
  - Logged out, got logout screen.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10785

Differential Revision: https://secure.phabricator.com/D16060
2016-06-06 14:33:09 -07:00
..
PhabricatorAuthDisableController.php Auth - add "manage providers" capability 2015-01-12 14:37:58 -08:00
PhabricatorAuthEditController.php Make auth provider autologin modular and implement it for all OAuth2 adapters 2016-06-06 14:33:09 -07:00
PhabricatorAuthListController.php Update Auth for new UI 2016-03-31 13:51:12 -07:00
PhabricatorAuthNewController.php Update Auth for new UI 2016-03-31 13:51:12 -07:00
PhabricatorAuthProviderConfigController.php Clean up authentication list 2015-02-07 10:46:30 -08:00