POST /V1/tfa/provider/u2fkey/authentication-challenge
POST /V1/tfa/provider/u2fkey/authentication-challenge is a Magento 2 REST endpoint in the TwoFactorAuth module. Get the information to initiate a WebAuthn registration ceremony. Callable anonymously — no Authorization header required.
Last verified: against Magento 2.4.9.
Returns
Magento\TwoFactorAuth\Api\Data\U2fWebAuthnRequestInterface
Service contract
Magento\TwoFactorAuth\Api\U2fKeyAuthenticateInterface::getAuthenticationData
Authorization
Anonymous — no Authorization header required.
Body parameters
Example request
Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.
Headers
Path
/V1/tfa/provider/u2fkey/authentication-challengeBody
{
"password": "",
"username": ""
}Related in TwoFactorAuth
Other endpoints shipped by the same module.
/V1/integration/admin/token
AnonymousTwoFactorAuth · Magento\TwoFactorAuth\Api\AdminTokenServiceInterface::createAdminAccessToken
/V1/tfa/default-provider-code/:userId
Get default provider
TwoFactorAuth · Magento\TwoFactorAuth\Api\UserConfigManagerInterface::getDefaultProvider
/V1/tfa/default-provider-code/:userId
Set default provider code
TwoFactorAuth · Magento\TwoFactorAuth\Api\TfaInterface::setDefaultProviderCode
/V1/tfa/forced-providers
Retrieve forced providers list
TwoFactorAuth · Magento\TwoFactorAuth\Api\TfaInterface::getForcedProviders
/V1/tfa/installed-providers
Get a list of providers
TwoFactorAuth · Magento\TwoFactorAuth\Api\TfaInterface::getAllProviders
/V1/tfa/provider/authy/activate
AnonymousActivate the provider and get an admin token
TwoFactorAuth · Magento\TwoFactorAuth\Api\AuthyConfigureInterface::activate
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.