This commit is contained in:
Tim Hess 2018-02-06 11:49:54 -06:00
Родитель 74fb633610
Коммит 15856fd75d
5 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
<PackageReference Include="Steeltoe.Extensions.Configuration.CloudFoundryCore" Version="2.0.0-rc1" />
<PackageReference Include="Steeltoe.Security.Authentication.CloudFoundryCore" Version="2.0.0-rc1" />

Просмотреть файл

@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.1" />

Просмотреть файл

@ -63,7 +63,7 @@ namespace CredHubDemo.Controllers
public async Task<IActionResult> Injected([FromServices]ICredHubClient credHub)
{
var newPassword = await credHub.GenerateAsync<PasswordCredential>(new PasswordGenerationRequest("generated-password", new PasswordGenerationParameters { Length = 20 }, true));
var newPassword = await credHub.GenerateAsync<PasswordCredential>(new PasswordGenerationRequest("generated-password", new PasswordGenerationParameters { Length = 20 }, null, OverwiteMode.overwrite));
ViewBag.Deleted = await credHub.DeleteByNameAsync("generated-password");
return View(newPassword);
@ -75,7 +75,7 @@ namespace CredHubDemo.Controllers
var creds = "{\"key\": 123,\"key_list\": [\"val1\",\"val2\"],\"is_true\": true}";
_logger.LogTrace("Setting credentials...");
await _credHub.WriteAsync<JsonCredential>(new JsonSetRequest("/config-server/credentials", creds, overwrite: true));
await _credHub.WriteAsync<JsonCredential>(new JsonSetRequest("/config-server/credentials", creds, null, OverwiteMode.overwrite));
_logger.LogTrace("Setting up ViewModel and calling Interpolate...");
var interpolated = await _credHub.InterpolateServiceDataAsync(_cfSettings.ServicesJson);
@ -146,7 +146,7 @@ namespace CredHubDemo.Controllers
var deleteGeneratedRsa = await _credHub.DeleteByNameAsync(generatedRsa.Name);
// SSH
var generatedSsh = await _credHub.GenerateAsync<SshCredential>(new SshGenerationRequest("generatedSsh", sshComment: "this is a comment"));
var generatedSsh = await _credHub.GenerateAsync<SshCredential>(new SshGenerationRequest("generatedSsh", new SshGenerationParameters { SshComment = "this is a comment"}));
var setSsh = await _credHub.WriteAsync<SshCredential>(new SshSetRequest("testWriteSsh", generatedSsh.Value.PublicKey, generatedSsh.Value.PublicKey));
var getSshById = await _credHub.GetByIdAsync<SshCredential>(setSsh.Id);
var getSshByName = await _credHub.GetByNameAsync<SshCredential>(setSsh.Name);

Просмотреть файл

@ -7,11 +7,11 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.0.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.0.2" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.1" />
<PackageReference Include="Steeltoe.Extensions.Configuration.CloudFoundryCore" Version="2.0.0-rc1" />
<PackageReference Include="Steeltoe.Management.CloudFoundryCore" Version="2.0.0-rc1" />
<PackageReference Include="Steeltoe.Security.DataProtection.CredHubCore" Version="2.0.0-dev-00096" />
<PackageReference Include="Steeltoe.Security.DataProtection.CredHubCore" Version="2.0.0-dev-00108" />
</ItemGroup>
</Project>

Просмотреть файл

@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />