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
add preferred_client_mode to enroll_via_validate #3457
add preferred_client_mode to enroll_via_validate #3457
Conversation
privacyidea/lib/tokens/emailtoken.py
Outdated
@@ -542,6 +542,7 @@ def enroll_via_validate(cls, g, content, user_obj): | |||
"type": token_obj.type, | |||
"message": _("Please enter your new email address!")} | |||
detail["multi_challenge"] = [chal] | |||
detail.update({"preferred_client_mode": "interactive"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please always use the constant: CLIENTMODE.INTERACTIVE,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add preferred_client_mode to webauthntoken.py
Codecov Report
@@ Coverage Diff @@
## master #3457 +/- ##
=======================================
Coverage 95.78% 95.78%
=======================================
Files 170 170
Lines 23137 23137
=======================================
Hits 22161 22161
Misses 976 976
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I'm not sure if I understand your request. Is there a fetcher to enrol webauthntoken via validate? |
Yeah, you're right, it is not possible to enroll webauthn via challenge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this should work out of the box just by moving the preferred_client_mode
decorator in front of the multichallenge_enroll_via_validate
decorator:
privacyidea/privacyidea/api/validate.py
Line 205 in 4ce9934
@postpolicy(multichallenge_enroll_via_validate, request=request) |
No description provided.