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

Add callback URL domain to auth screen #45445

Merged
merged 4 commits into from Mar 8, 2024

Conversation

lsinger
Copy link
Contributor

@lsinger lsinger commented Mar 8, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

Add callback URL domain to auth screen:

Screenshot 2024-03-08 at 17 35 40

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. check out this branch locally and run wp-env start
  2. visit http://localhost:8888/wc-auth/v1/authorize?app_name=Example+App&scope=read_write&user_id=1&return_url=https%3A%2F%2Fwoo.com%2F&callback_url=https%3A%2F%2Fexample.com and make sure it looks similar to the screenshot above
  3. ensure approving and denying continue to work

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Comment

@lsinger lsinger requested a review from a team March 8, 2024 16:37
@lsinger lsinger self-assigned this Mar 8, 2024
@lsinger lsinger requested review from jorgeatorres and removed request for a team March 8, 2024 16:37
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Mar 8, 2024
Copy link
Contributor

github-actions bot commented Mar 8, 2024

Hi @jorgeatorres,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

github-actions bot commented Mar 8, 2024

Test Results Summary

Commit SHA: d902b52

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 38s
E2E Tests335001603517m 23s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

<p>
<?php
/* Translators: %s Domain name from the callback URL. */
printf( esc_html__( 'Credentials will be shared with the website %s.', 'woocommerce' ), '<strong>' . esc_html( wp_parse_url( $callback_url, PHP_URL_HOST ) ) . '</strong>' );
Copy link
Member

Choose a reason for hiding this comment

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

A few small/optional things, just wanted to briefly discuss them:

  1. Should we drop the use of the word 'website'? It implies that accessing the domain should lead to a website of some kind, which may not always be the case.
  2. I guess this is implicit, but I'm wondering about structuring the sentence something like: "If you approve this request, credentials will be shared with <DOMAIN>. You should not proceed if you have any concerns about the validity of that domain." Overkill?

If we prefer to go ahead without these changes, totally fine: it works well, is already a nice enhancement and I'm hitting approve.

@barryhughes
Copy link
Member

... +I guess we need a template version tag bump.

@lsinger lsinger merged commit ba4260a into trunk Mar 8, 2024
59 checks passed
@lsinger lsinger deleted the update/auth-screen-add-callback-domain branch March 8, 2024 19:14
@github-actions github-actions bot added this to the 8.8.0 milestone Mar 8, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Mar 8, 2024
@alopezari alopezari added needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Mar 11, 2024
Konamiman pushed a commit that referenced this pull request Mar 13, 2024
* add callback URL domain to auth screen

* add changelog file

* bump template version

* tweak wording
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants