getsentry / getsentry/sentry

Adding 2fa fails with redirect loop

Open
#105,029 8 comments 0 reactions 0 assignees View on GitHub
Bug Product Area: Settings - Auth Type: Support Request Waiting for: Product Owner
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

1. Add 2fa as an passkey or totp device
2. Enroll device, UI says enrolled
3. Press confirm
4. UI redirects back to device enrollment UI without actually adding the device

### Expected Result

2FA device in enrolled.

### Actual Result

2FA device is not enrolled without error in the UI.

### Product Area

Settings - Auth

### Link

https://sentry.io/settings/account/security/mfa/u2f/enroll/

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure at the linked MFA enrollment URL using the listed passkey or TOTP steps. Trace the confirmation flow for the redirect back to device enrollment and compare it with the expected enrolled-device state. Done means confirming the device succeeds without a redirect loop and the UI reflects enrollment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.