Skip to content

Fix: check for valid secret only when creating a release build#486

Merged
ockham merged 1 commit into
developfrom
fix/secrets-check
Aug 6, 2018
Merged

Fix: check for valid secret only when creating a release build#486
ockham merged 1 commit into
developfrom
fix/secrets-check

Conversation

@adlk
Copy link
Copy Markdown
Contributor

@adlk adlk commented Aug 5, 2018

Description:

In #467 the secrets check has been simplified which leads to an error when not using the official wp.com client id.

This PR is changing the secrets check to fail only when CONFIG_ENV is release and the secret is not the official wp.com client id.

How to test:

  • In calypso/config/secrets.json change desktop_oauth_client_id to eg. 12345.
  • Run make build CONFIG_ENV=release and the build should fail.
  • Change desktop_oauth_client_id to 43452.
  • Run make build CONFIG_ENV=release and the build should succeed.

Motivation and Context:

This PR closes #483

@adlk adlk self-assigned this Aug 5, 2018
@adlk adlk requested a review from ockham August 5, 2018 12:24
Copy link
Copy Markdown
Contributor

@ockham ockham left a comment

Choose a reason for hiding this comment

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

Thanks for fixing so quickly! :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make dev-server fails with non-WP.com-desktop app secrets

3 participants