+
+ def current
+ if Thread.current[:api_client_authorization].nil?
+ send_error("Not logged in", status: 401)
+ else
+ @object = Container.for_current_token
+ if @object.nil?
+ send_error("Token is not associated with a container.", status: 404)
+ else
+ show
+ end
+ end
+ end
+
+ def secret_mounts
+ c = Container.for_current_token
+ if @object && c && @object.uuid == c.uuid
+ send_json({"secret_mounts" => @object.secret_mounts})
+ else
+ send_error("Token is not associated with this container.", status: 403)
+ end
+ end