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

WIP: Webautn support #3238

Open
wants to merge 7 commits into
base: feature/sievefilters
Choose a base branch
from
Open

WIP: Webautn support #3238

wants to merge 7 commits into from

Conversation

Spitfireap
Copy link
Member

closes #2331

@Spitfireap Spitfireap changed the title WIP: Feature/fido WIP: Webautn support Apr 22, 2024
@Spitfireap Spitfireap changed the base branch from master to feature/sievefilters April 22, 2024 19:43
TODO: modify the middleware to certify the user has successfully used it...
docker-compose.yml Show resolved Hide resolved
modoboa/core/api/v2/viewsets.py Outdated Show resolved Hide resolved
modoboa/core/fido2_auth.py Outdated Show resolved Hide resolved
get_creds_from_user(request.user.pk),
user_verification=UserVerificationRequirement.DISCOURAGED
)
request.session['fido2_state'] = state
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you want to use a session?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not ? I need to store this while the client respond with the payload to *_end. Is there something to know ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because sessions won't work with the API...

@@ -27,7 +27,7 @@ def delete_cache_key(class_target, throttles, request):
"""Attempt to delete cache key from throttling on login/password reset success."""

for throttle in throttles:
if type(throttle) == class_target:
if type(throttle) is class_target:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isinstance might be a better choice 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

Successfully merging this pull request may close these issues.

Feature Request: WebAuthn
2 participants