Skip to content

Conversation

aaronromeo
Copy link
Contributor

The approval prompt could be set via a settings file for a project rather than having to create a view which inherits from the AuthorizationView and overrides the get method.

def get(self, request, *args, **kwargs):
    req = request.GET.copy()
    req.setdefault('approval_prompt', 'auto')
    request.GET = req
    return super(AuthorizeView, self).get(request, *args, **kwargs)

@masci masci added this to the 0.7.0 milestone Feb 26, 2014
masci pushed a commit that referenced this pull request Feb 26, 2014
Created a setting for the default value for approval prompt.
@masci masci merged commit 4328a2a into django-oauth:master Feb 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants