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 User Creation #163

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Update User Creation #163

merged 1 commit into from
Sep 29, 2024

Conversation

TanmoySG
Copy link
Owner

This pull request includes several changes focused on enhancing user creation and privilege management in the wunderDB project. The most important changes include updating the user creation process to include metadata, modifying privilege names for clarity, and incorporating authentication handling.

Enhancements to user creation:

  • internal/server/handlers/users.go: Updated the CreateUser function to parse metadata from the request body and handle user credentials via a new authentication handler.
  • pkg/wdb/users.go: Modified the CreateUser method to accept metadata as a parameter and pass it to the user creation logic. [1] [2]
  • pkg/wdb/wdb.go: Updated the Client interface to include metadata in the CreateUser method signature.

Privilege management improvements:

  • documentation/README.md: Renamed privileges from addData, readData, updateData, and deleteData to addRecords, readRecords, updateRecords, and deleteRecords for better clarity.

Documentation update:

  • documentation/README.md: Updated the user creation example to include metadata in the JSON body and added an Authorization header for better clarity.

Codebase maintenance:

These changes collectively improve the functionality and clarity of the user creation process and privilege management in the wunderDB project.

@TanmoySG TanmoySG merged commit efb362f into main Sep 29, 2024
3 checks passed
@TanmoySG TanmoySG deleted the user-creation-update branch September 29, 2024 05:59
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.

1 participant