-
Notifications
You must be signed in to change notification settings - Fork 157
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
clarify adding external connections instructions in README, fix #837 #838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skorasaurus thanks for getting this started, much appreciated! Things should be even more simple than what you've updated to here, so if you're able to update your PR to the non-manual connection setup to use the Remove Connection Wizard steps that would be great... thanks again!
README.md
Outdated
1. On remotesite.com, ensure that [Application Passwords](https://wordpress.org/plugins/application-passwords/) is installed. (_Note: Using this plugin instead of a normal WordPress users password helps limit the use of your primary password and will allow you to revoke access to Distributor in the future if needed._) Then navigate to the user profile that will be used to create the External Connection on mainsite.com and then to the `Application Passwords` section of the user profile (not the `Account Management` section). Add a label for the New Application Password Name (e.g., `mainsite.com`) and click `Add New`. Now copy the password provided into mainsite.com's External Connections `Password` field. | ||
1. On mainsite.com, add the `External Connection URL` (e.g., http://remotesite.com/wp-json). You should see a green circle and "_Connection established._". | ||
1. Enter a label for the connection (e.g., `remotesite.com`). | ||
1. Select `Username / Password` for the `Authentication Method`, open the `manually set up connection` link, and input a username from remotesite.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the next couple steps can generally be skipped as the "Remote Connection Wizard" helps skip many of these steps. Should essentially be (1) add label for the External Connection, (2) enter domain for the external site, (3) click Authorize Connection, (4) process acceptance from there to get to the final step of saving the new External Connection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I had a misunderstanding of how Application Passwords were being used and did not think that an Application Password.
As I understand now, an application password is now automatically generated and saved when going through the "Remote Connection Wizard" process although the user first enters their user name and their password (not an application password) when making the authorization (if the user is not already logged into that other website). At the time of making the PR, I didn't know that (application password creation) was happening behind the scene.
The message in the 'Edit External Connection' page -
"Important: We strongly recommend using the Application Passwords plugin on the site you are connecting to in order to create a unique password for this connection. This helps limit the use of your primary password and will allow you to revoke access in the future if needed." -
led me to believe that my credentials were being stored instead (of a unique application password) ; as indicated in the screenshot below
I've updated the PR using the "Remote connection Wizard" directions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skorasaurus good callout on the text on the Edit External Connection page, we could/should probably remove that entire line at this point as that adds unnecessary plugins to someone's site as WordPress core now handles all that functionality. If you'd like, I'd say go ahead and strip that out as part of this PR as well if you'd like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @skorasaurus, much appreciated!
Description of the Change
Clarified the instructions for setting up External Connections. Existing instructions assumes use of the applications-password plugin whose functionality has been merged into WordPress core as of 5.6.
The current
Add New External Connection
page is also different than what is described in the readme and instructions have been updated for that (more information in #837Closes #837
Alternate Designs
Possible Drawbacks
Maybe you want users to use the application-password plugin? Additional references to using the application-password are still in README and readme.
Verification Process
What process did you follow to verify that your change has the desired effects?
Checklist:
Changelog Entry
Credits
Props @skorasaurus, @jeffpaul.