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
|
# 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:
|
||||||
|
|
Loading…
Reference in a new issue