Skip to content

[PB-7003]: feat/management reauth - #173

Merged
jzunigax2 merged 3 commits into
mainfrom
feat/management-reauth
Nov 11, 2026
Merged

jzunigax2 merged 3 commits into
mainfrom
feat/management-reauth

Conversation

@jzunigax2

@jzunigax2 jzunigax2 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

depends on https://github.com/internxt/object-storage-server/pull/243

What

Adds the UI for two security checks the backend now enforces in the Management Console:

  • Confirm your password: adding a member, resetting a member's 2FA and deleting a member ask the owner to enter their password again
  • Forced 2FA setup: when the owner resets a member's 2FA, that member sees a full-screen "Set up two-factor authentication" page after signing in.

How

  • Re-authentication
    • When the server answers 403 REAUTH_REQUIRED, the managementAxios response interceptor opens ReauthDialog
  • Forced 2FA setup
    • login and GET /me now return twoFactorSetupRequired
    • ManagementAuthRoute renders ForcedTwoFactorSetup instead of the layout while the flag is set.

@jzunigax2
jzunigax2 requested a review from sg-gs November 2, 2026 11:49
@jzunigax2 jzunigax2 self-assigned this Nov 2, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
object-storage-management-web 8da83cf Commit Preview URL

Branch Preview URL
Nov 11 2026, 04:41 PM

Base automatically changed from feat/managment-members-administration to main November 11, 2026 16:39
- Added ReauthDialog component for handling user reauthentication when required by the API.
- Integrated reauthentication logic into managementAxios to prompt users for credentials upon receiving a REAUTH_REQUIRED error.
- Updated management context to include ReauthDialog, ensuring it is rendered alongside other components.
- Enhanced managementAuthService with reauthenticate method to facilitate password and two-factor code submission.
- Added tests to verify reauthentication behavior and ensure proper handling of API responses.
- Added ForcedTwoFactorSetup component to prompt users for two-factor authentication setup when required.
- Updated ManagementAuthRoute to render ForcedTwoFactorSetup based on twoFactorSetupRequired state.
- Introduced twoFactorErrorMessage utility for consistent error handling across two-factor authentication components.
- Modified management context to manage twoFactorSetupRequired state and clear it upon completion.
- Enhanced managementAuthService to return twoFactorSetupRequired flag during login.
- Updated tests to verify the new two-factor authentication flow and its integration.
- Introduced ForcedTwoFactorSetupLayout component for consistent UI across forced two-factor authentication prompts.
- Refactored ForcedTwoFactorSetup components in partners and wholesalers to utilize the new layout.
- Updated two-factor error handling by consolidating error messages and labels into twoFactorCopy for better maintainability.
- Improved API error handling in ReauthDialog and other components by integrating getLockedUntil utility.
- Streamlined two-factor setup forms to use shared labels, enhancing consistency across the application.
@jzunigax2
jzunigax2 force-pushed the feat/management-reauth branch from 2fcc45a to 8da83cf Compare November 11, 2026 16:39
@jzunigax2
jzunigax2 merged commit 2a9391b into main Nov 11, 2026
2 checks passed
@jzunigax2
jzunigax2 deleted the feat/management-reauth branch November 11, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants