コード例 #1
0
        public async Task <IActionResult> Keys(string id)
        {
            _logger.LogInformation("Deleting authentication key {0} from tenant {1} by {2}", id, User.Tenant(), User.Identity?.Name);
            var key = await _keyManager.FindByIdAsync(id);

            if (key == null)
            {
                return(NotFound());
            }

            await _keyManager.DeleteAsync(key);

            return(Ok());
        }