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

Do not store the API token on install #639

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

joshcanhelp
Copy link
Contributor

Changes

  • Change the Setup Wizard to no longer store the API token used in preparation for removing the App Token setting.
  • Add TODO comments for deprecations before release.

References

Continues the work from #637 and #632 to remove the App Token field (use a Client Credentials grant for Management API work and store in a expiring transient).

Testing

This can be tested manually by installing the plugin from scratch on a new site. Expect no changes to behavior.

  • This change adds unit test coverage
  • This change has been tested on WP 5.1.1

Checklist

  • All existing and new tests complete without errors
  • All code quality tools/guidelines in the Contribution guide have been run/followed
  • All active GitHub CI checks have passed

@joshcanhelp joshcanhelp marked this pull request as ready for review March 25, 2019 21:09
@joshcanhelp joshcanhelp added this to the 3.10.0 milestone Mar 25, 2019
@@ -175,6 +175,7 @@ public static function get_client_token() {
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comments only in this file.

@damieng
Copy link
Contributor

damieng commented Mar 25, 2019

Do we need to clean this token up on existing installs or did it never ship?

@joshcanhelp
Copy link
Contributor Author

@damieng - When the field is removed, I'll delete the stored one as well. For 99%+ installs, the token is already expired.

@joshcanhelp joshcanhelp merged commit 11afa88 into master Mar 25, 2019
@joshcanhelp joshcanhelp deleted the remove-api-token-after-wizard branch March 25, 2019 22:21
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants