Skip to content

[PB-6513, PB-6515] Add login and pwd change with argon2 - #439

Open
TamaraFinogina wants to merge 5 commits into
masterfrom
add_endpoints_argon2
Open

TamaraFinogina wants to merge 5 commits into
masterfrom
add_endpoints_argon2

Conversation

@TamaraFinogina

@TamaraFinogina TamaraFinogina commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Endpoint for login and password change with Argon2, without sending keys and without encrypting with CRYPTO_SECRET

PB-6515
PB-6513

@TamaraFinogina TamaraFinogina self-assigned this Aug 31, 2026
@TamaraFinogina
TamaraFinogina requested a review from sg-gs August 31, 2026 13:31
Comment thread src/auth/index.ts Outdated
token: Token;
user: UserSettings;
}>(
'/auth/login-argon2/access',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to add a flag as a query param to the already existent EP than adding another one which does not follow REST.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Alternatively, I can put it inside params ("kdf: 'argon2'") to avoid query params

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, won't re-using the endpoint be harder? Because the server expects an encrypted hash and expects keys, so server actions would depend a lot on this flag

@TamaraFinogina
TamaraFinogina requested a review from CandelR August 31, 2026 14:07
@TamaraFinogina
TamaraFinogina requested a review from sg-gs August 31, 2026 14:29
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.

2 participants