Skip to content

Commit

Permalink
Merge pull request #208 from OyvindLGjesdal/quote-ini-password
Browse files Browse the repository at this point in the history
#201:  Add quote to password examples
  • Loading branch information
lprimak authored Aug 5, 2024
2 parents f5fbfe4 + 731e550 commit 8086a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/site/content/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ You do that by configuring the implicitly created `iniRealm` in the [main] secti
[users]
# user1 = sha256-hashed-hex-encoded password, role1, role2, ...
user1 = $shiro2$argon2id$v=19$t=1,m=65536,p=4$H5z81Jpr4ntZr3MVtbOUBw$fJDgZCLZjMC6A2HhnSpxULMmvVdW3su+/GCU3YbxfFQ, role1, role2, ...
user1 = "$shiro2$argon2id$v=19$t=1,m=65536,p=4$H5z81Jpr4ntZr3MVtbOUBw$fJDgZCLZjMC6A2HhnSpxULMmvVdW3su+/GCU3YbxfFQ", role1, role2, ...
----

[#Configuration-INIConfiguration-Sections-roles]
Expand Down
2 changes: 1 addition & 1 deletion src/site/content/v2/command-line-hasher.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Take this value and place it as the password in the user definition line (follow
----
[users]
...
user1 = $shiro2$argon2id$v=19$t=1,m=65536,p=4$H5z81Jpr4ntZr3MVtbOUBw$fJDgZCLZjMC6A2HhnSpxULMmvVdW3su+/GCU3YbxfFQ
user1 = "$shiro2$argon2id$v=19$t=1,m=65536,p=4$H5z81Jpr4ntZr3MVtbOUBw$fJDgZCLZjMC6A2HhnSpxULMmvVdW3su+/GCU3YbxfFQ"
----

You will also need to ensure that the implicit `iniRealm` uses a `CredentialsMatcher` that knows how to perform secure hashed password comparisons.
Expand Down

0 comments on commit 8086a5d

Please sign in to comment.