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

Define user with a pre-hashed password #950

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ Users can change their own password by running the following command:
SET PASSWORD TO 'newPassword' REPLACE 'oldPassword';
```

Password does not need to be in plain-text, a user can be identified via an already hashed password.

Example where "user" is identified by "password":
```cypher
CREATE USER user IDENTIFIED BY 'sha256:5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8';
```

The string identifying the hashed password is formatted as: algorithm-name:hash

Supported algorithms:
1. "bcrypt"
1. "sha256"
1. "sha256-multiple"

Hash is the alphanumerical string of 64 characters for sha256 and 60 characters form bcrypt;

To delete a user, run the following command:

```cypher
Expand Down