Support OAuth2 authorization and authentication to Web API

Review Request #9072 — Created July 12, 2017 and submitted

Information

Review Board
release-3.0.x
8ada670...

Reviewers

This patch brings full OAuth2 support into Review Board. We now support
authorization via a new endpoint (/oauth2/authorize/) which clients
can use in the process of getting an OAuth2 token to authenticate
themselves to the Web API.

  • Created a sample OAuth client and retrieved an OAuth2 token. Used it
    to communicate with the web API.
  • Ran unit tests.
Description From Last Updated

F401 'oauth2_provider.models.AccessToken' imported but unused

reviewbotreviewbot

Can scopes_descriptions be empty?

daviddavid

Mark for translation?

daviddavid

Docstring?

daviddavid

features before testing

daviddavid

Can we have oauth before s?

daviddavid
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

brennie
david
  1. 
      
  2. reviewboard/templates/oauth/authorize.html (Diff revision 2)
     
     
     
    Show all issues

    Can scopes_descriptions be empty?

  3. Show all issues

    Mark for translation?

  4. reviewboard/webapi/auth_backends.py (Diff revision 2)
     
     
    Show all issues

    Docstring?

  5. reviewboard/webapi/tests/test_oauth2_auth.py (Diff revision 2)
     
     
     
     
     
    Show all issues

    features before testing

  6. 
      
brennie
david
  1. 
      
  2. reviewboard/urls.py (Diff revision 3)
     
     
     
     
     
    Show all issues

    Can we have oauth before s?

  3. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (57b10f7)