[OAuth] TypeError: unsupported operand type(s) for &: 'set' and 'tuple'
ERROR 2021-11-30 21:01:06,572 log: Internal Server Error: /oauth/authorize/
Traceback (most recent call last):
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauth2_provider/views/base.py", line 41, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/django/contrib/auth/mixins.py", line 71, in dispatch
return super().dispatch(request, *args, **kwargs)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauth2_provider/views/base.py", line 145, in get
scopes, credentials = self.validate_authorization_request(request)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauth2_provider/views/mixins.py", line 98, in validate_authorization_request
return core.validate_authorization_request(request)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauth2_provider/oauth2_backends.py", line 101, in validate_authorization_request
scopes, credentials = self.server.validate_authorization_request(
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 112, in wrapper
return f(endpoint, uri, *args, **kwargs)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/endpoints/authorization.py", line 114, in validate_authorization_request
return response_type_handler.validate_authorization_request(request)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauthlib/openid/connect/core/grant_types/dispatchers.py", line 37, in validate_authorization_request
return self._handler_for_request(request).validate_authorization_request(request)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauthlib/openid/connect/core/grant_types/base.py", line 35, in validate_authorization_request
return self.proxy_target.validate_authorization_request(request)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 390, in validate_authorization_request
if not self.request_validator.validate_response_type(request.client_id,
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/oauth2_provider/oauth2_validators.py", line 438, in validate_response_type
return client.allows_grant_type(AbstractApplication.GRANT_AUTHORIZATION_CODE)
File "/srv/www/aleksis/venv/lib/python3.9/site-packages/aleksis/core/models.py", line 1135, in allows_grant_type
return bool(set(allowed_grants) & grant_types)
Edited by Nik | Klampfradler