Generating Keys
It is necessary to change the default encryption keys found inside the appsettings.json files for an application. The already existing keys found inside these files are generated by Avanade and these are not intended for normal use. It is therefore strongly advised to generate your own unique keys with the Setup tool.
Most AMT web applications have a setting called "AmtCookieEncryptionKey" in their appsettings.json files. In Blazor Web Clients this key needs to match the key used by the AMT Application Center, other AMT Web Applications (such as Provided REST APIs) should have unique keys. |
- Navigate to the following directory: ..\<AMT Environment>\Setup.
- Open the Setup.exe file.
- Navigate in the Setup menu to File → Settings and select the second tab called Key generation.
- Select the Generate key button.
- Copy the generated key and use it in the appsetting.json file that requires a key.
warning Do not use the key in the image