From bff51d85cb7ba2bc65d6a3600779ee165c923f31 Mon Sep 17 00:00:00 2001 From: 24c02 <163450896+24c02@users.noreply.github.com> Date: Sun, 28 Dec 2025 21:21:02 -0500 Subject: [PATCH] include key names in revocation response --- app/controllers/api/revocations_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/revocations_controller.rb b/app/controllers/api/revocations_controller.rb index 1459780..ab119a8 100644 --- a/app/controllers/api/revocations_controller.rb +++ b/app/controllers/api/revocations_controller.rb @@ -12,7 +12,8 @@ class API::RevocationsController < ActionController::API user = public_api_key.public_user return render json: { success: true, - owner_email: user.email + owner_email: user.email, + key_name: public_api_key.name } end @@ -23,7 +24,8 @@ class API::RevocationsController < ActionController::API user = internal_api_key.user return render json: { success: true, - owner_email: user.email + owner_email: user.email, + key_name: internal_api_key.pretty_name } end