Open AlanCoding opened 8 months ago
Local variables in ansible_base/authentication/social_auth.py
args
(<ansible_base.authentication.social_auth.AuthenticatorStrategy object at 0x7f9e9c38bd90>,)
kwargs
{'database_instance': <Authenticator: Local Database Authenticator>, 'redirect_uri': '/api/social/complete/ansible_base-authentication-authenticator_plugins-local__local-database-authenticator/'}
The Backend
is
<class 'ansible_base.authentication.authenticator_plugins.local.AuthenticatorPlugin'>
it looks like there's a strategy object and a database object. The single strategy object is in args
and the database is passed as a kwarg, but the kwarg comes before the args and it treats the strategy as a database, thus the error message.
@fosterseth is developing a solution via API browser
This is still an issue.
2024-04-04 17:03:31,668 INFO ansible_base.authentication.backend User angry_spud logged in from authenticator with ID "1"
[04/Apr/2024 17:03:31] "POST /admin/login/?next=/admin/ HTTP/1.1" 200 13748
It no longer gives the server error, but it still won't load the admin page.
runserver
GET http://127.0.0.1:8000/api/social/login/ansible_base-authentication-authenticator_plugins-local__local-database-authenticator/