Fix openid scope in authorize view.
This commit is contained in:
parent
25a59c8344
commit
fb4e9bd8fe
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue