Fix openid scope in authorize view.
This commit is contained in:
parent
25a59c8344
commit
fb4e9bd8fe
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue