Added a UI for confirming OAuth Access.

Description

  1.  

    1.  

      1.  

        1. What are the relevant tickets?
          Fixes https://github.com/mitocw/edx-platform/issues/176

  1.  

    1.  

      1.  

        1. What's this PR do?

Adds a UI for OAuth access, which allows users to delegate permissions to 3rd party services.

  1.  

    1.  

      1.  

        1. Where should the reviewer start?

A familiarity with django-oauth2-provider is essential, as this PR is just some custom templating around that library's workings. I think @clintonb or @jimabramson are probably good candidates to review this from the oauth side.

  1.  

    1.  

      1.  

        1. How should this be manually tested?

1. Create an oauth client.
2. Visit the URL localhost:8000/oauth2/authorize?client_id=test-id&response_type=code&scope=email

The client_id is the one you made. Scopes are space separated. Valid scopes are: default, openid, profile, email, course_staff, course_instructor, and permissions.

  1.  

    1.  

      1.  

        1. Any background context you want to provide?

This is relevant for interacting with edX as a third party application, which MIT will need for upcoming feature work. The template was copied from django-oauth2-provider repository and edited to integrate with `main_django.html` and provide some styling hooks.

  1.  

    1.  

      1.  

        1. Screenshots (if appropriate)

![oauth2-view](https://cloud.githubusercontent.com/assets/3853/12895865/bf6355b0-ce6c-11e5-8b70-c242f769a66c.png)

(the box is an artifact of screen capture, not in the actual page)

  1.  

    1.  

      1.  

        1. What gif best describes this PR or how it makes you feel?
          ![](http://s.mlkshk-cdn.com/r/178EW.gif)

Status

Assignee

Unassigned

Reporter

Edx Admin [Administrator]

Labels

Contributor Name

Justin Abrahms

Repo

edx/edx-platform

Customer

Epic Link

None

OSCM Assignee

None

Priority

Unset
Configure