Page MenuHomePhabricator

Make auth provider autologin modular and implement it for all OAuth2 adapters
ClosedPublic

Authored by epriestley on Jun 6 2016, 8:13 PM.
Tags
None
Referenced Files
F18803796: D16060.id38649.diff
Sat, Oct 18, 4:00 AM
F18578961: D16060.id38642.diff
Sep 10 2025, 11:41 PM
F18507657: D16060.id.diff
Sep 5 2025, 2:20 AM
F18500266: D16060.diff
Sep 4 2025, 8:37 PM
F18108205: D16060.diff
Aug 11 2025, 5:25 AM
F17899802: D16060.id38642.diff
Jul 29 2025, 8:46 AM
Unknown Object (File)
Jun 2 2025, 12:00 AM
Unknown Object (File)
May 31 2025, 8:31 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Make auth provider autologin modular and implement it for all OAuth2 adapters.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 6 2016, 9:04 PM
This revision was automatically updated to reflect the committed changes.