mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 18:45:15 +00:00
include key names in revocation response
This commit is contained in:
parent
eb664a80e3
commit
bff51d85cb
1 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,8 @@ class API::RevocationsController < ActionController::API
|
||||||
user = public_api_key.public_user
|
user = public_api_key.public_user
|
||||||
return render json: {
|
return render json: {
|
||||||
success: true,
|
success: true,
|
||||||
owner_email: user.email
|
owner_email: user.email,
|
||||||
|
key_name: public_api_key.name
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -23,7 +24,8 @@ class API::RevocationsController < ActionController::API
|
||||||
user = internal_api_key.user
|
user = internal_api_key.user
|
||||||
return render json: {
|
return render json: {
|
||||||
success: true,
|
success: true,
|
||||||
owner_email: user.email
|
owner_email: user.email,
|
||||||
|
key_name: internal_api_key.pretty_name
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue