Fix openid scope in authorize view.

This commit is contained in:
juanifioren 2016-02-18 16:03:46 -03:00
parent 25a59c8344
commit fb4e9bd8fe

View file

@ -57,7 +57,8 @@ class AuthorizeView(View):
# Remove `openid` from scope list
# since we don't need to print it.
authorize.params.scope.remove('openid')
if 'openid' in authorize.params.scope:
authorize.params.scope.remove('openid')
context = {
'client': authorize.client,
@ -117,7 +118,7 @@ class AuthorizeView(View):
class TokenView(View):
def post(self, request, *args, **kwargs):
token = TokenEndpoint(request)
try: