Hey! Looking for some help importing firebase auth...
# talk-kratos
b
Hey! Looking for some help importing firebase auth users. Based off the documentation, I need to provide a
parallelization
value, what do I put for this? It’s not included with my Firebase Auth export or the Password hash params provided. Is this just an arbitrary value I add? If so, are there…common values? The example in Firebase Import uses a value of 16 🤔
Copy code
hash_config {
  algorithm: SCRYPT,
  base64_signer_key: <...sensitive...>,
  base64_salt_separator: <...sensitive...>,
  rounds: 8,
  mem_cost: 14,
}
I’m seeing values of 1 here? https://github.com/pbhogan/scrypt/issues/79#issuecomment-558744597
m
Hello @boundless-insurance-60355 I am not sure, but all examples I saw use 1 🤔 We also use 1 in our tests: https://github.com/ory/kratos/blob/3852eb460251a079bad68d08bee2aef23516d168/hash/hasher_test.go#L239-L241 Maybe a higher value is needed in Firebase Import bc it generates a new hash? Apologies for the ping, but do you have experience with this, i believe you migrate from Firebase @kind-fireman-77262?
k
If i am reading this correctly, you want to import users to firebase auth? are you trying to switch from ory to firebase entirely? If you wan to use firebase auth in the context of other firebase tools (firebase security rules) but keep an external identity provider (such as ory), I would go for this: https://firebase.google.com/docs/auth/web/custom-auth?hl=en I believe the parallelization refers to the cores dedicated to the hashing, but tbh I do not know how that will impact the import.
m
No from Firebase to Ory 🙏 I was just wondering if you imported users from firebase before using the (somewhat new) Firebase Scrypt ”Importer” before and if yes, what value you set for p (parallelization).
b
Thanks guys - I guess I’ll roll with 1 for now haha