Skip to content

Delete the WordPressAuthenticator library - #25646

Merged
crazytonyli merged 2 commits into
trunkfrom
task/remove-authenticator-phase5
Jun 15, 2026
Merged

Delete the WordPressAuthenticator library#25646
crazytonyli merged 2 commits into
trunkfrom
task/remove-authenticator-phase5

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Note

This PR will be merged after #25645

@dangermattic

Copy link
Copy Markdown
Collaborator
2 Warnings
⚠️ Modules/Package.swift was changed without updating its corresponding Package.resolved.

If the change includes adding, removing, or editing a dependency please resolve the Swift packages as appropriate to your project setup (e.g. in Xcode or by running swift package resolve).

If the change to the Package.swift did not modify dependencies, ignoring this warning should be safe, but we recommend double checking and running the package resolution just in case.
.

⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot

wpmobilebot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number32635
VersionPR #25646
Bundle IDcom.jetpack.alpha
Commit5965679
Installation URL5g2osepel3jto
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number32635
VersionPR #25646
Bundle IDorg.wordpress.alpha
Commit5965679
Installation URL7f3i8609168v8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase4 branch from 56b3c8a to 93f49c2 Compare June 15, 2026 00:15
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase5 branch from 3c37b48 to 47fc4a6 Compare June 15, 2026 00:15
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase4 branch from 93f49c2 to 2dd2128 Compare June 15, 2026 00:50
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase5 branch from 47fc4a6 to ab4681c Compare June 15, 2026 00:50
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase4 branch from 2dd2128 to c567244 Compare June 15, 2026 01:23
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase5 branch from ab4681c to 7610c8f Compare June 15, 2026 01:23
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase4 branch from c567244 to ad92a12 Compare June 15, 2026 03:21
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase5 branch from 7610c8f to aa8b8ed Compare June 15, 2026 03:21
Base automatically changed from task/remove-authenticator-phase4 to trunk June 15, 2026 03:54
Removes the library sources and tests, the navigator groups, the scheme and test plan references, the Swift package manifest entries, and the localization and lint configuration entries. The library's two features are fully replaced by the web-based WordPress.com sign-in and the application password sign-in flow.
@crazytonyli
crazytonyli force-pushed the task/remove-authenticator-phase5 branch from aa8b8ed to 5965679 Compare June 15, 2026 03:56
@crazytonyli crazytonyli added this to the 27.0 milestone Jun 15, 2026
@crazytonyli
crazytonyli marked this pull request as ready for review June 15, 2026 04:00
@crazytonyli
crazytonyli requested a review from a team as a code owner June 15, 2026 04:00
@crazytonyli
crazytonyli enabled auto-merge June 15, 2026 04:00
@crazytonyli
crazytonyli added this pull request to the merge queue Jun 15, 2026
Merged via the queue into trunk with commit f8ad8c4 Jun 15, 2026
27 checks passed
@crazytonyli
crazytonyli deleted the task/remove-authenticator-phase5 branch June 15, 2026 04:30
pull Bot pushed a commit to kliu/WordPress-iOS that referenced this pull request Jul 22, 2026
…press-mobile#25803)

* Remove dead Google login credentials

Removed with WordPressAuthenticator, via f8ad8c4 -
wordpress-mobile#25646

* Remove dead GoogleSignIn URL scheme entries

These were the OAuth callback schemes — reversed Google client IDs — for the
Google sign-in flow that lived in `WordPressAuthenticator`, deleted in wordpress-mobile#25646.
Nothing handles the scheme anymore.

The schemes were hardcoded here rather than injected from `googleLoginSchemeId`,
so removing that secret in the preceding commit left them untouched and equally
dead.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

* Move Sentry DSN definition from secrets to `Info.plist`

That value does not need to be secret.
See https://docs.sentry.io/concepts/key-terms/dsn-explainer/#dsn-utilization

* Update DocsBot documentation links

The `/docs/` path the widget comment pointed at is stale; the page now lives
under `/documentation/developer/`.

The same link sits on `docsBotId` because it establishes what the value is: the
widget `id` is embed code, documented for placement in a site's public HTML.
That makes it a candidate to leave `BuildSecrets` the way the Sentry DSN did.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

* Move Docs Bot ID from secrets to Jetpack's `Info.plist`

* Read one secrets file for all app targets

The per-app branching existed because the secrets files held app-specific
values. Those have since moved to each app's `Info.plist`, read via
`BuildSettings`, leaving only values the three apps share.

`WordPress-Secrets-Internal.swift` and `-Alpha.swift` leave the input list too:
the script stopped reading them well before this change.

The shebang moves to `#!/usr/bin/env bash` with a separate `set -euo pipefail`.
`#!/bin/bash -euo pipefail` passed multiple parameters, which most systems do
not support.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

* Fix stale script path in credentials filelist

The entry pointed at `ApplyConfiguration.sh`, renamed in e78ed88 and never
updated here, so the self-dependency its comment describes was not wired: Xcode
had no edge from the build phase to the script driving it.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

* Store the Sentry DSN without its scheme

`INFOPLIST_PREPROCESS` is on for WordPress and Jetpack, so the plist goes
through the C preprocessor, where `//` opens a comment. The `https://` in the
DSN swallowed the rest of the line including `</string>`, leaving XML that
`ProcessInfoPlistFile` could not parse, and every app build failed.

Reader does not preprocess its plist, but the value is read through one code
path, so all three stay consistent.

This mirrors `WPProductBlogURL`, which is stored scheme-less for the same
reason.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

* Slim down AI-generated comment

* Name the Sentry DSN key for its missing scheme

The constraint only shows up in `BuildSettings+Live.swift`, which someone
editing the plist never opens. `WPSentryNoSchemeDSN` states it where a full DSN
would otherwise get pasted, and unlike an XML comment it survives Xcode's plist
editor.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

* Remove now-unused app-specific secrets

* Drop the app prefix from the secrets file name

Every target reads this file now, so naming it after one of them misleads. It
also matches the source name in the secrets repo, `iOS/WPiOS/Secrets.swift`.

---

Generated with the help of Claude Code, https://claude.ai/code

Co-Authored-By: Claude Code Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Code Opus 4.8 <noreply@anthropic.com>
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.

4 participants