C
C#2mo ago
Pekdon

Setting Machine Key in new .NET Core applications

I'm in the process of upgrading an old Umbraco site from version 8 -> 13. And I want to use a package called uSync.PeopleEdition to migrate over my users from the old site to the new. The docs (https://docs.jumoo.co.uk/usync/complete/guides/People_Edition/people/) tells me: Syncing Passwords Passwords are stored in Umbraco in a non-reversible hash. When uSync exports these for members and users they will be stored in the .config files for those accounts. When these values are imported to another Umbraco instance that instance has to use the same machine key values to hash passwords or they will not match when users attempt to login. As a result you should ensure that any Umbraco instances where you wish to sync members should have the same machineKey value in their web.config files. But I don't know how to set the machineKey attribute in now since it's no longer part of the web.config file. Can anyone help me?
uSync.PeopleEdition | Jumoo docs
uSync.PeopleEdition adds four new handlers & serializers to uSync to manage users and member syncing between environments.
2 Replies
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
felsokning
felsokning2mo ago
I'm assuming MachineKey contains the encryption key[s] used to encrypt/decrypt? I think it'll be the same underlying key mechanism for File.Encrypt. https://learn.microsoft.com/en-us/dotnet/api/system.io.file.encrypt?view=net-8.0#remarks Basically, you'll need the original keys from the CSP (Cryptographic Service Provider). Even though you'll provide the same key identifier, unless you're using the same exact machine, the actual encryption keys will be different; so, you may have to export/import them - depending on your scenario.
Want results from more Discord servers?
Add your server