Implement modular authentication with improved error handling#2
Open
jane-alesi wants to merge 23 commits into
Open
Implement modular authentication with improved error handling#2jane-alesi wants to merge 23 commits into
jane-alesi wants to merge 23 commits into
Conversation
Introduce a Docker-based development environment for DokuWiki with `docker-compose`, including start/stop scripts. Configure ESLint and Prettier for coding standards, and update scripts in `package.json` for linting and formatting. Adjust `.gitignore` to exclude local dev data while preserving essential files.
Previously, the entire .idea/ directory was ignored. This change narrows the scope to only ignore workspace.xml, allowing the rest of the .idea/ directory to be included in version control if necessary.
Include shared inspection profiles, run configurations for linting, testing, and script execution, and update `.gitignore` to exclude user-specific files while preserving shared settings. This ensures consistent IDE settings across the team.
Introduce a comprehensive development guide detailing project structure, setup, workflow, and contribution standards. This document aims to streamline onboarding for developers and improve project maintainability.
This commit includes the auto-generated default configuration files (`users.auth.php`, `local.php`, and `acl.auth.php`) for the DokuWiki development setup. It also removes the version declaration from `docker-compose.yml`. These changes are necessary to establish the initial environment for development.
Introduce a new `examples/test-client.js` file to demonstrate usage of the modular API client with a local DokuWiki instance. The script connects to the wiki, retrieves and displays content, lists pages, and creates a new test page. Also, updated the `dev` script in `package.json` to point to the new test client.
The `authMethod` field was added to ensure compatibility with the authentication module. This resolves an issue where the client could not connect due to the missing authentication method configuration.
Relocated configuration files to a new `dokuwiki-config` directory for better organization. Updated local settings to enable remote API access, adjust debugging and security options, and refine ACL rules for development purposes. These changes streamline development workflows and enhance configurability.
Added the savedir path to specify the data storage location. Configured remoteuser to allow any authenticated user, enhancing flexibility for remote access.
Enhanced the `listPages` function to handle various return formats for better robustness and clarity. Added detailed parsing for different page structures and fallback logging for unexpected formats. Removed outdated comments and ensured cleaner output handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a modular architecture for the DokuWiki Manager plugin with a focus on authentication and error handling. The changes include:
Implementation Details
Authentication Module (
src/auth.js)API Client Module (
src/apiClient.js)Error Handler Module (
src/errorHandler.js)Testing
Testing Done
Documentation
Next Steps
After this PR is merged:
Closes #1 (if there was an issue for this)