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

no webauthn device register possible #8734

Closed
dierkgrossfeld opened this issue Feb 28, 2024 · 0 comments · Fixed by #8738
Closed

no webauthn device register possible #8734

dierkgrossfeld opened this issue Feb 28, 2024 · 0 comments · Fixed by #8738

Comments

@dierkgrossfeld
Copy link

Describe the bug
If webauthn device is already registered authentication works without any issue.

But as long as no webauthn device is configured one can neither enforce it in the validation flow nor manually in the user profile.
To Reproduce
Steps to reproduce the behavior:

  1. delete webauthn device
  2. logout
  3. login
  4. try to add webauthn device in user profile settings

Expected behavior
webauthn device can be registered

Logs

Stacktrace from authentik
Traceback (most recent call last):
  File "/authentik/flows/views/executor.py", line 291, in get
    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 95, in get
    challenge = self._get_challenge(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/flows/stage.py", line 172, in _get_challenge
    challenge = self.get_challenge(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/stages/authenticator_webauthn/stage.py", line 114, in get_challenge
    "registration": loads(options_to_json(registration_options)),
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ak-root/venv/lib/python3.12/site-packages/webauthn/helpers/options_to_json.py", line 71, in options_to_json
    ] = _selection.authenticator_attachment.value
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
builtins.AttributeError: 'str' object has no attribute 'value'

Version and Deployment (please complete the following information):

  • authentik version: 2024.2.1
  • Deployment: helm
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

Successfully merging a pull request may close this issue.

1 participant