Support OAuth2 authorization and authentication to Web API

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

Barret Rennie
Review Board
release-3.0.x
9030, 9071
9078
8ada670...
reviewboard

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.
  • 0
  • 0
  • 6
  • 0
  • 6
Description From Last Updated
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

Barret Rennie
David Trowbridge
  1. 
      
  2. reviewboard/templates/oauth/authorize.html (Diff revision 2)
     
     
     

    Can scopes_descriptions be empty?

  3. Mark for translation?

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

    Docstring?

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

    features before testing

  6. 
      
Barret Rennie
David Trowbridge
  1. 
      
  2. reviewboard/urls.py (Diff revision 3)
     
     
     
     
     

    Can we have oauth before s?

  3. 
      
Barret Rennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (57b10f7)
Loading...