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

Hooks to support requesting 2FA for plugins extending two-factor core functionality #644

Open
jeffpaul opened this issue Oct 17, 2024 · 1 comment
Labels
Compatibility Compatibility with other plugins, Core, back-compat

Comments

@jeffpaul
Copy link
Member

Is your enhancement related to a problem? Please describe.

There are potential cases of other plugins, or perhaps custom site functionality, where they might want to leverage the two-factor core plugin functionality to trigger a re-auth of a specific users 2FA credentials. One example here would be a site with an expected high traffic event (e.g. Cyber Monday ad, Super Bowl ad) or perhaps becoming a larger target for hacks and improper publishing (e.g. news org during a national election) wherein they want to force someone trying to update or publish new content to go through re-auth via 2FA to ensure that the author and content being updated/published is done so by a properly credentialed user (versus someone who perhaps gained access to someone's machine to try and update/publish nefarious content).

Proposed Solution

Well documented hooks to expose portions of the 2FA auth flow from places within the WP Admin or site front end as well as some sample code snippets feels like a solid option to support this sort of compatibility/extension of the two-factor plugin.

Designs

No response

Describe alternatives you've considered

No response

Please confirm that you have searched existing issues in this repository.

Yes

@jeffpaul jeffpaul added the Compatibility Compatibility with other plugins, Core, back-compat label Oct 17, 2024
@jeffpaul jeffpaul added this to the Future Release milestone Oct 17, 2024
@dd32
Copy link
Member

dd32 commented Oct 21, 2024

I've been working on something similar for WordPress.org: WordPress/wporg-two-factor#283 A way to prompt a user for 2FA validation within a certain timeframe (Last 5 minutes for example) to proceed with an action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compatibility Compatibility with other plugins, Core, back-compat
Projects
None yet
Development

No branches or pull requests

2 participants