Page MenuHomePhabricator

Begin cleaning up OAuth scope handling
ClosedPublic

Authored by epriestley on Apr 3 2016, 3:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 2:13 AM
Unknown Object (File)
Thu, Apr 11, 7:58 AM
Unknown Object (File)
Sun, Apr 7, 3:28 PM
Unknown Object (File)
Sun, Apr 7, 10:33 AM
Unknown Object (File)
Fri, Apr 5, 2:10 AM
Unknown Object (File)
Thu, Apr 4, 3:25 AM
Unknown Object (File)
Sun, Mar 31, 12:42 PM
Unknown Object (File)
Mar 16 2024, 6:33 PM
Subscribers
None

Details

Summary

Ref T7303. OAuth scope handling never got fully modernized and is a bit of a mess.

Also introduce implicit "ALWAYS" and "NEVER" scopes.

Always give tokens access to meta-methods like conduit.getcapabilities and conduit.query. These do not expose user information.

Test Plan
  • Used a token to call user.whoami.
  • Used a token to call conduit.query.
  • Used a token to try to call user.query, got rebuffed.

Diff Detail

Repository
rP Phabricator
Branch
oauth2
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/oauthserver/PhabricatorOAuthServer.php:175XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 11454
Build 14283: Run Core Tests
Build 14282: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Begin cleaning up OAuth scope handling.
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.Apr 3 2016, 4:50 PM
This revision was automatically updated to reflect the committed changes.