async Task IAuthenticationSetup.SetupAsync(AuthorizationToken authorizationToken) { var secret = authorizationToken is null ? null : JsonConvert.SerializeObject(authorizationToken); _ = await secretsService .SetSecretAsync(nameof(AuthenticationService), secret) .ConfigureAwait(false); }
public async Task <IActionResult> SetSecret([FromRoute] string secretName, [FromBody] SecretSetParameters secretSetParameters) { var secret = await _secretsService.SetSecretAsync(secretName, secretSetParameters); if (secret is null) { } return(Ok(secret)); }