1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/auth
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
..
action Rate limit multi-factor actions 2014-04-30 14:30:31 -07:00
application Add ViewController and SearchEngine for SSH Public Keys 2016-05-19 09:48:46 -07:00
capability Auth - add "manage providers" capability 2015-01-12 14:37:58 -08:00
conduit Deactivate SSH keys instead of destroying them completely 2016-05-18 14:54:28 -07:00
constants Support invites in the registration and login flow 2015-02-11 06:06:28 -08:00
controller Make auth provider autologin modular and implement it for all OAuth2 adapters 2016-06-06 14:33:09 -07:00
data Convert all calls to 'IconFont' to just 'Icon' 2016-01-27 20:59:27 -08:00
editor Fix minor section formatting mishap in SSH key email 2016-05-19 15:20:19 -07:00
engine Convert user profile images into a standard cache 2016-06-05 08:52:15 -07:00
exception Add email invites to Phabricator (logic only) 2015-02-09 16:12:36 -08:00
extension Begin modularizing main menu items 2016-01-04 06:57:09 -08:00
factor Formally modularize MFA/TOTP tokens, provide a module panel for temporary tokens 2016-03-16 09:33:58 -07:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
handler Modularize generation of supplemental login messages 2015-09-04 10:34:39 -07:00
mail Send forced mail on SSH key edits 2016-05-19 15:01:25 -07:00
management Various translation improvements 2015-11-03 07:02:46 +11:00
phid Add ViewController and SearchEngine for SSH Public Keys 2016-05-19 09:48:46 -07:00
provider Make auth provider autologin modular and implement it for all OAuth2 adapters 2016-06-06 14:33:09 -07:00
query Use transactions to apply web UI SSH key edits 2016-05-19 15:00:18 -07:00
sshkey Send forced mail on SSH key edits 2016-05-19 15:01:25 -07:00
storage Send forced mail on SSH key edits 2016-05-19 15:01:25 -07:00
tokentype Formally modularize MFA/TOTP tokens, provide a module panel for temporary tokens 2016-03-16 09:33:58 -07:00
view Add ViewController and SearchEngine for SSH Public Keys 2016-05-19 09:48:46 -07:00
worker Send emails for email invites 2015-02-11 06:06:09 -08:00