From d30d11bb3558abe4635f7d4668eae71db8e20d1f Mon Sep 17 00:00:00 2001 From: Leandro Alonso Date: Mon, 13 Dec 2021 14:12:49 -0300 Subject: [PATCH 1/2] Add: SIWA entitlements --- WordPress/Jetpack/JetpackDebug.entitlements | 4 ++++ WordPress/Jetpack/JetpackRelease.entitlements | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/WordPress/Jetpack/JetpackDebug.entitlements b/WordPress/Jetpack/JetpackDebug.entitlements index 0ee72271aa63..4b1258b729a3 100644 --- a/WordPress/Jetpack/JetpackDebug.entitlements +++ b/WordPress/Jetpack/JetpackDebug.entitlements @@ -4,6 +4,10 @@ aps-environment development + com.apple.developer.applesignin + + Default + com.apple.developer.associated-domains webcredentials:wordpress.com diff --git a/WordPress/Jetpack/JetpackRelease.entitlements b/WordPress/Jetpack/JetpackRelease.entitlements index 0ee72271aa63..4b1258b729a3 100644 --- a/WordPress/Jetpack/JetpackRelease.entitlements +++ b/WordPress/Jetpack/JetpackRelease.entitlements @@ -4,6 +4,10 @@ aps-environment development + com.apple.developer.applesignin + + Default + com.apple.developer.associated-domains webcredentials:wordpress.com From 61607f2b54af1f48fff974208b4a597fa8150ed3 Mon Sep 17 00:00:00 2001 From: Leandro Alonso Date: Mon, 13 Dec 2021 14:14:29 -0300 Subject: [PATCH 2/2] Add: SIWA button for Jetpack --- .../ViewRelated/NUX/WordPressAuthenticationManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift b/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift index 7fe13430fa98..c9e13e7d2c51 100644 --- a/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift +++ b/WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift @@ -57,7 +57,7 @@ extension WordPressAuthenticationManager { private func authenticatorConfiguation() -> WordPressAuthenticatorConfiguration { // SIWA can not be enabled for internal builds // Ref https://github.com/wordpress-mobile/WordPress-iOS/pull/12332#issuecomment-521994963 - let enableSignInWithApple = AppConfiguration.allowSignUp && !(BuildConfiguration.current ~= [.a8cBranchTest, .a8cPrereleaseTesting]) + let enableSignInWithApple = !(BuildConfiguration.current ~= [.a8cBranchTest, .a8cPrereleaseTesting]) return WordPressAuthenticatorConfiguration(wpcomClientId: ApiCredentials.client, wpcomSecret: ApiCredentials.secret,