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

Passwordless login fails to work after upgrade from 2023.10.7 to 2024.2.0 #8631

Closed
bigdaddy5414 opened this issue Feb 21, 2024 · 4 comments
Closed

Comments

@bigdaddy5414
Copy link

Describe the bug
Passwordless login fails to work after upgrade from 2023.10.7 to 2024.2.0 It just states there was a general error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Use a security key'
  2. Something went wrong! Please try again later.

Expected behavior
Uses FACEID and logs in automatically

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/stages/authenticator_validate/stage.py", line 243, in get
    challenges = self.get_webauthn_challenge_without_user()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/stages/authenticator_validate/stage.py", line 216, in get_webauthn_challenge_without_user
    "challenge": get_webauthn_challenge_without_user(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/authentik/stages/authenticator_validate/challenge.py", line 72, in get_webauthn_challenge_without_user
    return loads(options_to_json(authentication_options))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ak-root/venv/lib/python3.12/site-packages/webauthn/helpers/options_to_json.py", line 118, in options_to_json
    auth_to_return["userVerification"] = options.user_verification.value
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
builtins.AttributeError: 'str' object has no attribute 'value'

Version and Deployment (please complete the following information):

  • authentik version: 2024.2.0
  • Deployment: [e.g. docker-compose, helm]
@FML128
Copy link

FML128 commented Feb 21, 2024

Same issue here

@freender
Copy link

Same issue:

"Traceback (most recent call last):\n File \"/authentik/flows/views/executor.py\", line 291, in get\n stage_response = self.current_stage_view.dispatch(request)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/ak-root/venv/lib/python3.12/site-packages/django/views/generic/base.py\", line 143, in dispatch\n return handler(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/authentik/stages/authenticator_validate/stage.py\", line 243, in get\n challenges = self.get_webauthn_challenge_without_user()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/authentik/stages/authenticator_validate/stage.py\", line 216, in get_webauthn_challenge_without_user\n \"challenge\": get_webauthn_challenge_without_user(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/authentik/stages/authenticator_validate/challenge.py\", line 72, in get_webauthn_challenge_without_user\n return loads(options_to_json(authentication_options))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/ak-root/venv/lib/python3.12/site-packages/webauthn/helpers/options_to_json.py\", line 118, in options_to_json\n auth_to_return[\"userVerification\"] = options.user_verification.value\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nbuiltins.AttributeError: 'str' object has no attribute 'value'"}

@DavidFuchs
Copy link

Exact same issue here. I just installed Authentik last night, mind you, so not a lot of experience here.

If I enter my username and password first, it then prompts me for my webauthn credential and everything works fine. But if I go straight to the passwordless flow, I get the Something went wrong! Please try again later. error.

I followed the instructions here: https://www.youtube.com/watch?v=aEpT2fYGwLw

2024-02-22T03:29:57.442712611Z INF | auth_via=unauthenticated domain_url=[redacted] event=/if/flow/df-passwordless-flow/?next=%2F host=[redacted] logger=authentik.asgi method=GET pid=19182 remote=10.0.0.1 request_id=0bc243ce92544150bbd4874262784c36 runtime=7 schema_name=public scheme=https status=200 timestamp=2024-02-22T03:29:57.442573 user= user_agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0 
2024-02-22T03:29:57.499477886Z INF | domain_url=null event=/ws/client/ logger=authentik.asgi pid=19182 remote=10.0.0.1 schema_name=public scheme=ws timestamp=2024-02-22T03:29:57.499351 user_agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0 
2024-02-22T03:29:57.513246454Z warning | auth_via=unauthenticated domain_url=[redacted] event=AttributeError("'str' object has no attribute 'value'") flow_slug=df-passwordless-flow host=[redacted] logger=authentik.flows.views.executor pid=19182 request_id=6ddf304b28ae4ee39922f0697832f63d schema_name=public timestamp=2024-02-22T03:29:57.513117 
2024-02-22T03:29:57.515484049Z INF | action=system_exception auth_via=unauthenticated client_ip=10.0.0.1 context={"http_request":{"args":{"next":"/"},"method":"GET","path":"/api/v3/flows/executor/df-passwordless-flow/","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0"},"message":"Traceback (most recent call last):\n  File \"/authentik/flows/views/executor.py\", line 291, in get\n    stage_response = self.current_stage_view.dispatch(request)\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/ak-root/venv/lib/python3.12/site-packages/django/views/generic/base.py\", line 143, in dispatch\n    return handler(request, *args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/authentik/stages/authenticator_validate/stage.py\", line 243, in get\n    challenges = self.get_webauthn_challenge_without_user()\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/authentik/stages/authenticator_validate/stage.py\", line 216, in get_webauthn_challenge_without_user\n    \"challenge\": get_webauthn_challenge_without_user(\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/authentik/stages/authenticator_validate/challenge.py\", line 72, in get_webauthn_challenge_without_user\n    return loads(options_to_json(authentication_options))\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/ak-root/venv/lib/python3.12/site-packages/webauthn/helpers/options_to_json.py\", line 118, in options_to_json\n    auth_to_return[\"userVerification\"] = options.user_verification.value\n                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nbuiltins.AttributeError: 'str' object has no attribute 'value'"} domain_url=[redacted] event=Created Event host=[redacted] logger=authentik.events.models pid=19182 request_id=6ddf304b28ae4ee39922f0697832f63d schema_name=public timestamp=2024-02-22T03:29:57.515383 user={"email":"","is_anonymous":true,"pk":1,"username":"AnonymousUser"} 

@BeryJu
Copy link
Member

BeryJu commented Feb 22, 2024

duplicate of #8618, will be fixed by 2024.2.1

@BeryJu BeryJu closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
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

5 participants