Replies: 2 comments 1 reply
-
|
Here is the endpoint to create accounts (principals): https://stalw.art/docs/api/management/endpoints#create-principal But yes, it needs to be documented better. In the meantime you can use the Webadmin to create a test account and see in the browser console the exact API call being used. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for above, we are seeing the Account appear now but the passwords seems to not work as logging is rejected on new accounts. My developer is asking : Can you please ask the documentation person from Stalwart about how we are encrypting password using scrypt according to this documentation https://stalw.art/docs/auth/authentication/password. const salt = crypto.randomBytes(16).toString('hex'); const hashedPassword = ${salt}:${derivedKey.toString('hex')}; And this is how what I am sending in the payload in create principal API. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to preface this question by stating I have worked with my dev team for 2 years and they have built some complicated things...but, we are not able to see in the docs what API will create a new email address and password....which seems like it would jump out at you. Then further, how to Authenticate the API is also not clear. maybe it is so obvious we cant see it...thank you for the direction.
Beta Was this translation helpful? Give feedback.
All reactions