evonove/django-oauth-toolkit — pull request #157 by DavidMuller (2014-10-05 23:34:56+00:00)
Title: Configurable authorization page in AuthorizationView

This pull request adds the attribute `skip_authorization_completely` to the AuthorizationView class. `skip_authorization_completely` defaults to False. However, if `skip_authorization_completely` is True, the authorization page is skipped and a token is immediately granted/returned.

For example the following url would always skip the authorization page whenever granting tokens to users:
```python
url(r'^o/authorize_skip_authorization_page/$', AuthorizationView.as_view(skip_authorization_completely=True), name="no_authorization_page"),
```
This PR includes a new test in `test_implicit.py` for this behavior.