зеркало из https://github.com/Azure/Sia-Gateway.git
Added configuration for authentication to playbook microservice
This commit is contained in:
Родитель
b90aad719b
Коммит
a8a2d64ee4
|
@ -103,7 +103,7 @@ namespace Sia.Gateway.Initialization
|
|||
|
||||
private static void ConfigureAuth(IServiceCollection services, IConfigurationRoot config)
|
||||
{
|
||||
var incidentAuthConfig = new AzureActiveDirectoryAuthenticationInfo(config["Incident:ClientId"], config["Incident:ClientSecret"], config["AzureAd:Tenant"]);
|
||||
var incidentAuthConfig = new AzureActiveDirectoryAuthenticationInfo(config["Playbook:ClientId"], config["Playbook:ClientSecret"], config["AzureAd:Tenant"]);
|
||||
services.AddSingleton<AzureActiveDirectoryAuthenticationInfo>(i => incidentAuthConfig);
|
||||
}
|
||||
|
||||
|
|
|
@ -14,5 +14,8 @@
|
|||
"Frontend": {
|
||||
"ClientId": "d4c7b0fe-1256-4ba4-921b-8cbb09262dbb"
|
||||
},
|
||||
"Playbook": {
|
||||
"ClientId": "838db523-b7e7-4cd2-9f4a-dcc99556f8b6"
|
||||
},
|
||||
"ClientId": "28361075-6d07-4f11-993e-383a0147513e"
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
//If using proxy
|
||||
"ProxyEndpoint": "endpoint URL",
|
||||
"ProxyAuthType": "Proxy authentication type (Certificate, VaultCertificate, or None)",
|
||||
|
||||
|
||||
//If using 'Certificate' proxy auth type
|
||||
"ProxyCertThumbprint": "Certificate thumbprint",
|
||||
|
||||
|
@ -36,5 +36,8 @@
|
|||
"VaultName": "name of KeyVault instance to use when retrieving certificate"
|
||||
}
|
||||
},
|
||||
"Playbook": {
|
||||
"ClientSecret": "aaaaaaaaaaaaaaa" //Replace with the client secret for your Playbook microservice
|
||||
},
|
||||
"ClientSecret": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa" //Replace with your client secret
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче