Skip to content

Add support for salt in import with sha passwords#319

Merged
slavikm merged 2 commits intomainfrom
feat/sha-salt-support
Apr 20, 2026
Merged

Add support for salt in import with sha passwords#319
slavikm merged 2 commits intomainfrom
feat/sha-salt-support

Conversation

@slavikm
Copy link
Copy Markdown
Member

@slavikm slavikm commented Apr 20, 2026

Related Issues

Related to https://github.com/descope/etc/issues/14870

Description

Add support for salted sha passwords when importing users

Must

  • Tests
  • Documentation (if applicable)

@slavikm slavikm requested review from aviadl and Copilot April 20, 2026 07:15
@shuni-bot-dev
Copy link
Copy Markdown

shuni-bot-dev Bot commented Apr 20, 2026

🐕 Review complete — View session on Shuni Portal 🐾

@slavikm slavikm enabled auto-merge (squash) April 20, 2026 07:16
Copy link
Copy Markdown

@shuni-bot-dev shuni-bot-dev Bot left a comment

Choose a reason for hiding this comment

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

🐕 Shuni's Review

Adds an optional salt field to BatchUserPasswordSha for salted SHA password imports, with a functional test.

No blocking issues found — good bones! One comment on test clarity below. Woof!

Comment thread src/test/java/com/descope/sdk/mgmt/impl/UserServiceImplTest.java
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds client-side support for importing users with salted SHA password hashes by extending the batch-user password model and validating the behavior via a functional test.

Changes:

  • Extend BatchUserPasswordSha request model to include a salt field.
  • Add a functional test that creates a user via batch import using sha256 + salt, then signs in with the plaintext password.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/main/java/com/descope/model/user/request/BatchUserPasswordSha.java Adds salt to the SHA hashed-password payload model.
src/test/java/com/descope/sdk/mgmt/impl/UserServiceImplTest.java Adds a functional test covering batch import with salted SHA password hashes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/test/java/com/descope/sdk/mgmt/impl/UserServiceImplTest.java
@slavikm slavikm merged commit 2daa907 into main Apr 20, 2026
17 checks passed
@slavikm slavikm deleted the feat/sha-salt-support branch April 20, 2026 07:33
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.

3 participants