5 assurer la sécurité la qualité et intégrer des logs #9
2 changed files with 15 additions and 14 deletions
|
|
@ -1,16 +1,17 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<startup>
|
||||||
</configSections>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
<startup>
|
</startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<appSettings>
|
||||||
</startup>
|
<add key="ApiAuthentication" value="admin:adminpwd"/>
|
||||||
<runtime>
|
</appSettings>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<runtime>
|
||||||
<dependentAssembly>
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
<dependentAssembly>
|
||||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||||
</dependentAssembly>
|
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||||
</assemblyBinding>
|
</dependentAssembly>
|
||||||
</runtime>
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
@ -53,7 +53,7 @@ namespace MediaTekDocuments.dal
|
||||||
String authenticationString;
|
String authenticationString;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
authenticationString = "admin:adminpwd";
|
authenticationString = ConfigurationManager.AppSettings["ApiAuthentication"];
|
||||||
api = ApiRest.GetInstance(uriApi, authenticationString);
|
api = ApiRest.GetInstance(uriApi, authenticationString);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue