2020-02-19 22:08:57 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class DeployToken < Grape::Entity
|
2020-02-28 07:09:05 -05:00
|
|
|
# exposing :token is a security risk and should be avoided
|
2021-04-30 11:09:50 -04:00
|
|
|
expose :id, :name, :username, :expires_at, :scopes, :revoked
|
|
|
|
expose :expired?, as: :expired
|
2020-02-19 22:08:57 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|