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

Hotfix/basic auth fix #457

Merged
merged 6 commits into from
Jan 23, 2024
Merged

Hotfix/basic auth fix #457

merged 6 commits into from
Jan 23, 2024

Conversation

boonedev
Copy link
Contributor

This PR:

  • Removes setting authorization header in rest calls because browser caches that auth and uses for all requests going forward (not just rest).
  • Updates composer to pull the most recent version of equalizedigital/accessibility-checker-wp-env.

'X-WP-Nonce' => wp_create_nonce( 'wp_rest' ),
'Authorization' => 'None',

);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We no longer need to pass auth.

@@ -77,9 +77,6 @@ function edac_display_welcome_page() {
*/
function edac_display_options_page() {
include_once plugin_dir_path( __DIR__ ) . 'partials/settings-page.php';

// force edac_auth_type to reset in case user updates auth options.
delete_transient( 'edac_auth_type' );
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unnecessary.

HEADERS = edacpFullSiteScanApp.edacpHeaders;
}


Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removes setting auth headers.

});

}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not used.

@@ -1,7 +1,5 @@
import { settings } from './settings';
import { init as initCheckPage } from './checkPage';
import { showNotice } from './../common/helpers';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not used.

@boonedev boonedev self-assigned this Jan 22, 2024
@SteveJonesDev SteveJonesDev marked this pull request as ready for review January 23, 2024 02:35
Copy link
Member

@SteveJonesDev SteveJonesDev left a comment

Choose a reason for hiding this comment

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

It still requires the password with every page load. Here is a screen recording.
https://www.dropbox.com/scl/fi/jmcq29ioanx0zfn73k6zi/video1714334445.mp4?rlkey=3r1el078cy6hsfk2qzjf9mgyu&dl=0

@SteveJonesDev SteveJonesDev added this to the v1.7.1 milestone Jan 23, 2024
 - Update version change to force newest version of editorApp.bundle.js
 - Cast boolean option to boolean out of an abundance of caution
@SteveJonesDev SteveJonesDev merged commit 9f91db8 into release/v1.7.1 Jan 23, 2024
6 checks passed
@SteveJonesDev SteveJonesDev deleted the hotfix/basic-auth-fix branch January 23, 2024 15:33
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.

2 participants