hedgedoc/src/auth
Philip Molares 46b5cdfb47
auth: Fix secret length
The former length of 64 bytes (512-bit) is transformed into base64url (a 6-bit code) ~86 characters long. This is too long for bcrypt as it ignores any characters beyond the 72th.
This fix therefore reduces the amount of generated bytes to 54 (as 72*6/8 = 54) characters. This ensures that removing one character from the token the hash won't be the same anymore.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
2021-01-28 12:18:20 +01:00
..
auth-token-with-secret.dto.ts auth: Add tests for AuthService 2021-01-22 15:29:10 +01:00
auth-token.dto.ts auth: Integrate suggestions by @davidmehren 2021-01-23 21:24:11 +01:00
auth-token.entity.ts auth: Add maximum token lifetime of 2 years. 2021-01-25 12:14:26 +01:00
auth.module.ts auth: Add tests for AuthService 2021-01-22 15:29:10 +01:00
auth.service.spec.ts auth: Fix secret length 2021-01-28 12:18:20 +01:00
auth.service.ts auth: Fix secret length 2021-01-28 12:18:20 +01:00
mock-auth.guard.ts auth: fixes unit and e2e tests 2021-01-16 19:33:09 +01:00
token-auth.guard.ts auth: adds token-auth to public api 2021-01-15 18:53:09 +01:00
token.strategy.ts auth: Fix handling of internal server errors 2021-01-27 21:55:30 +01:00