Add OAuth token management form
Review Request #9083 — Created July 17, 2017 and submitted
This patch adds a simple form for managing a user's OAuth tokens. They
can currently only revoke them.This patch also takes into account the styling changes in /r/9074/ and
the rename of the API token page to the Authentication page.
- Manually tested token deletion with the form. The tokens were
successfully deleted. - Ran JS tests.
- Ran unit tests.
Description | From | Last Updated |
---|---|---|
Testing done seems incomplete. |
david | |
The posted diff seems to include unrelated changes. |
david | |
Typo: "THe" |
david | |
Might be nicer to wrap as: for token in ( AccessToken.objects .select_related('application', 'application__local_site') .filter(user=self.user) ) |
david | |
Undo this change? |
david | |
I think the paths should be set up correctly so you can just do @import (reference) "djblets/css/config-forms.less". We do use … |
david | |
Add another blank line here? |
david |
-
-
-
reviewboard/accounts/forms/pages.py (Diff revision 1) Might be nicer to wrap as:
for token in ( AccessToken.objects .select_related('application', 'application__local_site') .filter(user=self.user) )
-
-
reviewboard/static/rb/css/pages/my-account.less (Diff revision 1) I think the paths should be set up correctly so you can just do
@import (reference) "djblets/css/config-forms.less"
.We do use relative paths for images from djblets since those are loaded on-demand from /static/.
-
reviewboard/static/rb/js/accountPrefsPage/views/oauthTokensView.es6.js (Diff revision 1) Add another blank line here?
Change Summary:
Addressed David's issues
Commit: |
|
||
---|---|---|---|
Diff: |
Revision 2 (+1325 -67) |
Checks run (2 succeeded)
Testing Done: |
|
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
||||||||||||
Diff: |
Revision 3 (+231 -56) |