[OAuth2Provider] Add webAPI end point for user to remove OAuth2 token from My Account page
Review Request #7964 — Created Feb. 15, 2016 and discarded — Latest diff uploaded
A new webAPI end point is added for user to GET and DELETE a OAuth2 token given OAuth2 token ID. The webAPI is meant to be called from My Account for user to remove a OAuth2 token.
Command run: python ./tests/runtests.py reviewboard.webapi.tests.test_oauth2_token
Test GET for list of OAuth2 token
Test GET and DELETE for OAuth2 tokenThis a copy from test_api_token
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.
orig
1
2
3
4
5
6
reviewboard/static/rb/js/accountPrefsPage/views/oauth2TokensView.js |
---|
reviewboard/static/rb/js/resources/models/oauth2TokenModel.js |
---|
reviewboard/webapi/resources/__init__.py |
---|
reviewboard/webapi/resources/oauth2_token.py |
---|
reviewboard/webapi/resources/user.py |
---|
reviewboard/webapi/tests/mimetypes.py |
---|
reviewboard/webapi/tests/test_oauth2_token.py |
---|
reviewboard/webapi/tests/urls.py |
---|