Skip to content
Discussion options

You must be logged in to vote

Update:

I got this working in the end.
For some reason, as exemplified by the E2E test, you need to remove the = padding from the base64 encoded hash and salt. This should probably be in the documentation for importing hashed passwords as this pretty unintuitive.

My working request became:

{
  "schema_id": "default",
  "traits": {
    "email": "potato@example.com"
  },
  "credentials": {
    "password": {
      "config": {
        "hashed_password": "$pbkdf2-sha1$i=3000,l=32$W9qjjsiqt3DSXwlhMB2Dvg$Rn423poYrpat2x7N6PlUFFgqfP6JqAFjPpMISu6i1xg"
      }
    }
  }
}

Also I noticed a bug in the E2E test as well:

$pbkdf2-sha256$i=1000,l=128$e8/arsEf4cvQihdNgqj0Nw$5xQQKNTyeTHx2Ld5/JDE7A

The de…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@callumcodes
Comment options

@aeneasr
Comment options

@reidrac
Comment options

@aeneasr
Comment options

@reidrac
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants