FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. dominwong4
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    dominwong4

    @dominwong4

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    dominwong4 Unfollow Follow

    Latest posts made by dominwong4

    • Fail to migrate user from my existing db

      Hi FA team,

      I am trying to migrate my users to FusionAuth, but fail to login after I migrate the users.

      From my side,

      Hashing algo should be : salted-hmac-sha256

      From online hmac sha256 generator which is match with my db, so I believe it is in salted-hmac-sha256
      53bd5886-3f69-441d-950e-0a866d55218f-image.png

      the user i try to import:
      email: test@email.com
      password: 12345678 -> hashed: f3c43f0fb6cdf9f91e880b98db7476803f8bb033eb573c098fff5a51f0762e6d
      salt: bBmcgRSa

      then i try to call and API /api/user/import with following request body

      {
          "users": [
              {
                  "email" : "test@email.com",
                  "password" : "f3c43f0fb6cdf9f91e880b98db7476803f8bb033eb573c098fff5a51f0762e6d",
                  "salt":"YkJtY2dSU2E=",
                  "factor":1,
                  "encryptionScheme" : "salted-hmac-sha256"
              }
          ]
      }
      
      

      It return 200OK which is success

      and then I call the API /api/login

      {
          "loginId":"test@email.com",
          "password":"12345678"
      }
      

      it return 404 which means the loginId or password is not matched

      Which step do I get wrong?

      Thanks

      posted in General Discussion
      D
      dominwong4