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

Store public API keys based on domain #52

Merged
merged 3 commits into from
Apr 5, 2019

Conversation

stevegrunwell
Copy link
Contributor

Since the WP101 Plugin SaaS generates a unique public API key for each domain/private API key combination, the public API key should be stored in a transient that's keyed to the current domain. This will ensure that if the value of site_url() ever changes, the appropriate public API key will be retrieved from the SaaS, fixing #49.

Additionally, public API keys are now only cached for 24 hours, enabling older keys to roll off after (for instance) a domain change.

@bswatson bswatson merged commit 49cf04c into develop Apr 5, 2019
@bswatson bswatson deleted the fix/key-public-key-on-domain branch April 5, 2019 17:53
stevegrunwell added a commit that referenced this pull request Apr 5, 2019
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.

None yet

2 participants