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

[Woo] Allow signing in to WPCom black-flagged websites using site credentials #154

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

hichamboushaba
Copy link
Member

@hichamboushaba hichamboushaba commented Oct 14, 2024

Closes: woocommerce/woocommerce-android#12779

Depends on wordpress-mobile/WordPress-FluxC-Android#3107

This PR updates the login flow for Woo to allow signing in to WordPress.com black-flagged websites, those websites will be treated as not having Jetpack, and will then be directed to the site credentials login flow.

Testing

For testing, please check woocommerce/woocommerce-android#12780

Comment on lines +64 to +67
default void gotConnectSiteInfo(@NonNull ConnectSiteInfoResult result) {
gotConnectedSiteInfo(result.getUrl(), result.getUrlAfterRedirects(), result.getHasJetpack());
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With these default implementations, we can avoid making this a breaking change for the client apps, for now, the apps will keep overriding the old version gotConnectedSiteInfo, while for WCAndroid, we will soon migrate to the new one gotConnectSiteInfo that passes the new model ConnectSiteInfoResult which would allow us to know if the site is suspended.

@hichamboushaba hichamboushaba merged commit cb4a9fe into trunk Oct 18, 2024
8 checks passed
@hichamboushaba hichamboushaba deleted the issue/12779-black-flagged-websites-woo branch October 18, 2024 09:09
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.

Direct black-flagged websites to use site credentials instead of failing.
2 participants