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 # Remove `openid` from scope list
# since we don't need to print it. # 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 = { context = {
'client': authorize.client, 'client': authorize.client,
@ -117,7 +118,7 @@ class AuthorizeView(View):
class TokenView(View): class TokenView(View):
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
token = TokenEndpoint(request) token = TokenEndpoint(request)
try: try: