Page MenuHomePhabricator

OAuthServer - hide client secret behind a "View Secret" action
ClosedPublic

Authored by btrahan on Jan 14 2015, 10:51 PM.
Tags
None
Referenced Files
F17869566: D11401.id.diff
Mon, Jul 28, 11:38 AM
F17860259: D11401.diff
Sun, Jul 27, 9:39 PM
F17859688: D11401.diff
Sun, Jul 27, 8:59 PM
F17708977: D11401.id27386.diff
Thu, Jul 17, 3:24 AM
F17708976: D11401.id.diff
Thu, Jul 17, 3:24 AM
F17705950: D11401.diff
Wed, Jul 16, 10:31 AM
Unknown Object (File)
Mon, Jun 30, 2:13 AM
Unknown Object (File)
May 24 2025, 5:31 AM
Subscribers
Tokens
"Doubloon" token, awarded by epriestley.

Details

Summary

...also adds policies on who can view and who can edit an action. Fixes T6949.

Test Plan

viewed a secret through the new UI and it worked

Diff Detail

Repository
rP Phabricator
Branch
T6949
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 3859
Build 3871: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to OAuthServer - hide client secret behind a "View Secret" action.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
resources/sql/autopatches/20150114.oauthserver.client.policy.sql
6

these could maybe be admin since no one is using this probably so its cool to break behavior? i'd also have to make the default be admin in the app code.

epriestley edited edge metadata.
epriestley added inline comments.
resources/sql/autopatches/20150114.oauthserver.client.policy.sql
6

I think "users" is a sensible default.

12

This could be editPolicy = creatorPHID (only allow the user who created the object to edit it), which I think mostly preserves existing behavior.

src/applications/oauthserver/controller/client/PhabricatorOAuthClientEditController.php
34

This should probably set defaults -- I guess USERS for view, and the viewer's PHID for edit?

This revision is now accepted and ready to land.Jan 15 2015, 1:08 AM
btrahan edited edge metadata.

changes as requested. thanks!

This revision was automatically updated to reflect the committed changes.