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
F18846236: D16060.id.diff
Oct 29 2025, 5:51 PM
F18842501: D16060.diff
Oct 28 2025, 4:10 PM
F18833599: D16060.id38642.diff
Oct 26 2025, 4:49 AM
F18803796: D16060.id38649.diff
Oct 18 2025, 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
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
Branch
auto1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12513
Build 15868: Run Core Tests
Build 15867: arc lint + arc unit

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.