Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /api/v3/flows/executor/eftr-authentication-flow/ #13344

Open
chudnyi opened this issue Mar 2, 2025 · 0 comments
Open

POST /api/v3/flows/executor/eftr-authentication-flow/ #13344

chudnyi opened this issue Mar 2, 2025 · 0 comments

Comments

@chudnyi
Copy link

chudnyi commented Mar 2, 2025

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs

Stacktrace from authentik
Traceback (most recent call last):
  File "/authentik/flows/views/executor.py", line 339, in post
    stage_response = self.current_stage_view.dispatch(request)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ak-root/venv/lib/python3.12/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/flows/stage.py", line 113, in post
    valid = challenge.is_valid()
            ^^^^^^^^^^^^^^^^^^^^
  File "/ak-root/venv/lib/python3.12/site-packages/rest_framework/serializers.py", line 227, in is_valid
    self._validated_data = self.run_validation(self.initial_data)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ak-root/venv/lib/python3.12/site-packages/rest_framework/serializers.py", line 429, in run_validation
    value = self.validate(value)
            ^^^^^^^^^^^^^^^^^^^^
  File "/authentik/stages/authenticator_email/stage.py", line 64, in validate
    if not self.device.verify_token(str(attrs["code"])):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/stages/authenticator/models.py", line 269, in verify_token
    self.save()
  File "/ak-root/venv/lib/python3.12/site-packages/django/db/models/base.py", line 778, in save
    self._prepare_related_fields_for_save(operation_name="save")
  File "/ak-root/venv/lib/python3.12/site-packages/django/db/models/base.py", line 1144, in _prepare_related_fields_for_save
    raise ValueError(
builtins.ValueError: save() prohibited to prevent data loss due to unsaved related object 'user'.

Version and Deployment (please complete the following information):

  • authentik version: 2025.2.1
  • Deployment: [e.g. docker-compose, helm]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant