Following the previous changes introduced in https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/2874, this PR simply adds the webauthn nonce to the Social login payload to be used in the WPLogin library. For our own advantage, the Social login endpoint already returns the same response structure from the /wp-login.php?action=login-endpoint, so the Login2faFragment required very little adaptation to work with this flow seamlessly.
How to Test
Introduce this WPLogin version to your client app.
Login with a Google account associated with WordPress.com using the Login with Google button during the login flow. (make sure this same account also has a Security key configured for your device)
Verify that the 2FA view is opened and the use a security key option is enabled.
Continue the usual Security key flow and make sure everything works as expected.
Update release notes:
[x] I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.
Summary
Following the previous changes introduced in https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/2874, this PR simply adds the
webauthn
nonce to the Social login payload to be used in the WPLogin library. For our own advantage, the Social login endpoint already returns the same response structure from the/wp-login.php?action=login-endpoint
, so theLogin2faFragment
required very little adaptation to work with this flow seamlessly.How to Test
Login with Google
button during the login flow. (make sure this same account also has a Security key configured for your device)use a security key
option is enabled.Update release notes:
RELEASE-NOTES.txt
if necessary.