• 
      

    Add OAuth token management form

    Review Request #9083 — Created July 17, 2017 and submitted

    Information

    Review Board
    release-3.0.x
    82e30aa...

    Reviewers

    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.

    daviddavid

    The posted diff seems to include unrelated changes.

    daviddavid

    Typo: "THe"

    daviddavid

    Might be nicer to wrap as: for token in ( AccessToken.objects .select_related('application', 'application__local_site') .filter(user=self.user) )

    daviddavid

    Undo this change?

    daviddavid

    I think the paths should be set up correctly so you can just do @import (reference) "djblets/css/config-forms.less". We do use …

    daviddavid

    Add another blank line here?

    daviddavid
    david
    1. 
        
    2. reviewboard/accounts/forms/pages.py (Diff revision 1)
       
       
      Show all issues

      Typo: "THe"

    3. reviewboard/accounts/forms/pages.py (Diff revision 1)
       
       
       
       
      Show all issues

      Might be nicer to wrap as:

      for token in (
          AccessToken.objects
          .select_related('application', 'application__local_site')
          .filter(user=self.user)
      )
      
    4. reviewboard/accounts/pages.py (Diff revision 1)
       
       
       
      Show all issues

      Undo this change?

    5. Show all issues

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

    6. Show all issues

      Add another blank line here?

    7. 
        
    brennie
    david
    1. 
        
    2. Show all issues

      Testing done seems incomplete.

    3. Show all issues

      The posted diff seems to include unrelated changes.

    4. 
        
    brennie
    david
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (64b3190)