Comments (4)
hi~
trace login process. it turns out it may be hue's AllowAllBackend not implements Django3.x auth backend implementation.
in build/env/lib/python3.8/site-packages/django/contrib/auth/init.py
line 64~74
def authenticate(request=None, **credentials):
"""
If the given credentials are valid, return a User object.
"""
for backend, backend_path in _get_backends(return_tuples=True):
backend_signature = inspect.signature(backend.authenticate)
try:
backend_signature.bind(request, **credentials)
except TypeError as e:
# This backend doesn't accept these credentials as arguments. Try the next one.
raise e
it called by build/env/lib/python3.8/site-packages/django/contrib/auth/forms.py
line 202
self.user_cache = authenticate(self.request, username=username, password=password)
AllowAllBackend.authenticate(username,password) inhers from DesktopBackendBase
only accept 2 arguments.
## desktop/core/src/desktop/auth/backend.py
class DesktopBackendBase(object):
"""
Abstract base class for providing external authentication schemes.
Extend this class and implement check_auth
"""
def authenticate(self, username, password):
if self.check_auth(username, password):
user = find_or_create_user(username)
user = rewrite_user(user)
return user
else:
return None
it will raise error TypeError("multiple values for argument 'username'")
while invoke backend_signature.bind(request, **credentials)
, DesktopBackendBase. authenticate method need some change to play with Django3.x
from hue.
@CrystalCat thanks for your detailed bug report. Since Hue is open source and the core team has limited time on their hands, would you be interested in creating a PR for this so that they could have a look?
from hue.
@bjornalm thanks,I'll try to create a PR for this problem. closing
from hue.
Related Issues (20)
- Hue Docker image does not work on Graviton ec2 instance with aarch64 HOT 2
- OIDC Auth causes ModuleNotFoundError: No module named 'mozilla_django_oidc' HOT 5
- Flink Connector needs Updating HOT 6
- Support Autocomplete for CTE tables HOT 1
- presto select result is repeated HOT 5
- New docker images for HUE on DockerHub HOT 3
- how to encrypt password HOT 1
- An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block HOT 5
- Unable to start Hue with AttributeError: 'Config' object has no attribute 'get' error HOT 12
- [Enhancement] Add support for Kyuubi JDBC connector HOT 1
- Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. cannot find field ac_auto_timing
- Transferring data from configmap to secret kubernetes HOT 1
- Issue while generating new parser HOT 2
- How to create a read-only user for ClickHouse
- hostPath is hardcoded for Helm Charts HOT 1
- 1 HOT 1
- How can I remove the help tips HOT 5
- Unable to reach the Web UI "Bad Request" HOT 2
- Hue demo page not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hue.