1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class AuthorizedKeysController < ApplicationController
12 @object.authorized_user_uuid = current_user.uuid if current_user
13 @object.key_type = 'SSH'
17 defaults = { authorized_user_uuid: current_user.uuid, key_type: 'SSH' }
18 @object = AuthorizedKey.new defaults.merge(params[:authorized_key] || {})