[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

Information

Review Board
master

Reviewers

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 token

This a copy from test_api_token

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
Loading...