Open hllshiro opened 2 months ago
I'm seeing same errors with latest version when trying to take an HTML snapshot. And I'm not using any auth provider.
Hi, to fix this particular error you need to actually enable the signing keys in the Authentik Provider settings, as described here: https://github.com/goauthentik/authentik/issues/4156#issuecomment-1396975257
Unfortunatelly this will not get you far, as the Mozzila Django OIDC then throws this error:
linkding | [pid: 19|app: 0|req: 18/44] ::ffff:172.28.0.2 () {66 vars in 1160 bytes} [Wed Nov 13 19:52:48 2024] GET /oidc/authenticate/ => generated 0 bytes in 7 msecs (HTTP/1.1 302) 10 headers in 793 bytes (1 switches on core 1)
linkding | 2024-11-13 19:52:49,057 ERROR Internal Server Error: /oidc/callback/
linkding | Traceback (most recent call last):
linkding | File "/opt/venv/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
linkding | response = get_response(request)
linkding | ^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response
linkding | response = wrapped_callback(request, *callback_args, **callback_kwargs)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/django/views/generic/base.py", line 104, in view
linkding | return self.dispatch(request, *args, **kwargs)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/django/views/generic/base.py", line 143, in dispatch
linkding | return handler(request, *args, **kwargs)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/mozilla_django_oidc/views.py", line 124, in get
linkding | self.user = auth.authenticate(**kwargs)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/django/views/decorators/debug.py", line 75, in sensitive_variables_wrapper
linkding | return func(*func_args, **func_kwargs)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/django/contrib/auth/__init__.py", line 79, in authenticate
linkding | user = backend.authenticate(request, **credentials)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/mozilla_django_oidc/auth.py", line 316, in authenticate
linkding | token_info = self.get_token(token_payload)
linkding | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linkding | File "/opt/venv/lib/python3.12/site-packages/mozilla_django_oidc/auth.py", line 252, in get_token
linkding | self.raise_token_response_error(response)
linkding | File "/opt/venv/lib/python3.12/site-packages/mozilla_django_oidc/auth.py", line 268, in raise_token_response_error
linkding | raise HTTPError(http_error_msg, response=response)
linkding | requests.exceptions.HTTPError: Get Token Error (url: https://auth.home.rarenz.com/application/o/token/, status: 405, body: )
I use a authentik auth2 provider, but get an error when excute callback. Is there someone can give me some help?
here is my .env