2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
# Use with care, this exposes the secret
|
|
|
|
class ApplicationWithSecret < Entities::Application
|
2023-05-27 22:25:52 +05:30
|
|
|
expose :secret, documentation: {
|
|
|
|
type: 'string',
|
|
|
|
example: 'ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34'
|
|
|
|
} do |application, _options|
|
|
|
|
application.plaintext_secret
|
|
|
|
end
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|