Configuration: Using a key vault for the client id and client secret - akumina/AkuminaDev GitHub Wiki
Akumina 4.1.1901.0110 and later
This article details how to configure the Akumina App Manager to obtain the client id and client secret from a key vault. This also applied for the Content Distribution client id and secret values.
It is assumed that you have the ClientId,ClientSecret,AppOnlyClientId and AppOnlyClientSecret keys from the web.config file.
NOTE: AppOnlyClientId and AppOnlyClientSecret may not be in use.
In the Azure key vault, create a new secret. For the Value, set it to be:
{"ClientId":"<value>","ClientSecret":"<value>","AppOnlyClientId":"<value>","AppOnlyClientSecret":"<value>"}
NOTE: This is case sensitive.
With the respective values for ClientId,ClientSecret,AppOnlyClientId and AppOnlyClientSecret.
Add the following key into appsettings, using the key vault url as the value:
<add key="akumina:SpClientIdSecretKeyVaultUri" value="<keyvaulturi>"/>
In the web.config file, remove the values present in the ClientId,ClientSecret,AppOnlyClientId and AppOnlyClientSecret keys.
<add key="ClientId" value="" />
<add key="ClientSecret" value="" />
<add key="AppOnlyClientId" value="" />
<add key="AppOnlyClientSecret" value="" />