Closed Ecarrion closed 1 year ago
Part of https://github.com/woocommerce/woocommerce-ios/issues/10851 Part of https://github.com/woocommerce/woocommerce-ios/issues/10852
This PR integrates the new webauthn endpoints added on WordPessKit to the LoginFacade.
LoginFacade
The changes on this PR will be used on subsequent PRs but are split for easier review.
signInToWordpressDotCom
needsultiFactor
webauthn
.requestWebauthnChallenge
authenticateWebauthnSignature
https://github.com/wordpress-mobile/WordPressKit-iOS/assets/562080/2f69ea2f-b680-4d0a-8840-3a76540f935d
You can believe the video π or you can test this experimental branch
Part of https://github.com/woocommerce/woocommerce-ios/issues/10851 Part of https://github.com/woocommerce/woocommerce-ios/issues/10852
Why
This PR integrates the new webauthn endpoints added on WordPessKit to the
LoginFacade
.The changes on this PR will be used on subsequent PRs but are split for easier review.
How
signInToWordpressDotCom
function to call the correctneedsultiFactor
delegate when awebauthn
is detected..requestWebauthnChallenge
method. Return challenge info if successful or fire error delegate if failure.authenticateWebauthnSignature
method. Fire success delegates with OAuth token if successful. Or error delegates if failure.Demo
https://github.com/wordpress-mobile/WordPressKit-iOS/assets/562080/2f69ea2f-b680-4d0a-8840-3a76540f935d
Testing
You can believe the video π or you can test this experimental branch
Notes
Steps