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

Update handling of application passwords. #934

Merged
merged 8 commits into from
Sep 13, 2022

Conversation

peterwilsoncc
Copy link
Collaborator

@peterwilsoncc peterwilsoncc commented Aug 29, 2022

Description of the Change

Modifies the checking of application passwords to validate the rest request using the an API provided by an external site. As part of this, it includes a fix for getting the REST API URL on sites using plain permalinks.

Closes #730

How to test the Change

Changelog Entry

Fixed - Improved accuracy of determining authentication endpoint.

Credits

Props @peterwilsoncc, @TimothyBJacobs, @cadic

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@peterwilsoncc peterwilsoncc marked this pull request as draft August 29, 2022 02:32
@peterwilsoncc peterwilsoncc force-pushed the update/730-app-pw-handling branch from 3a68903 to 008d6cd Compare August 29, 2022 03:23
A URL with the `rest_route` set but empty will show the home page of the site rather than the index of the REST API endpoint. This causes the validation of these requests to fail.

By ensuring the request to the REST API index always finishes with a trailing slash, this ensures the site receives the expected JSON response data.
@peterwilsoncc peterwilsoncc force-pushed the update/730-app-pw-handling branch from 98339a4 to 0660849 Compare August 29, 2022 03:56
@jeffpaul jeffpaul added this to the 2.0.0 milestone Aug 29, 2022
@peterwilsoncc peterwilsoncc marked this pull request as ready for review September 12, 2022 03:35
@peterwilsoncc peterwilsoncc requested review from a team, ravinderk and cadic and removed request for a team and ravinderk September 12, 2022 03:35
@peterwilsoncc peterwilsoncc merged commit 65163b9 into develop Sep 13, 2022
@peterwilsoncc peterwilsoncc deleted the update/730-app-pw-handling branch September 13, 2022 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Update handling of App Pwds
3 participants