Sha256: ba1c8dd21d4d3cb4e8e52e257fc4f0d5e6e9ae272551f2ae0021f182f42078d5
Contents?: true
Size: 908 Bytes
Versions: 43
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true module Doorkeeper module SecretStoring ## # Plain text secret storing, which is the default # but also provides fallback lookup if # other secret storing mechanisms are enabled. class Plain < Base ## # Return the value to be stored by the database # @param plain_secret The plain secret input / generated def self.transform_secret(plain_secret) plain_secret end ## # Return the restored value from the database # @param resource The resource instance to act on # @param attribute The secret attribute to restore # as retrieved from the database. def self.restore_secret(resource, attribute) resource.public_send(attribute) end ## # Plain values obviously allow restoring def self.allows_restoring_secrets? true end end end end
Version data entries
43 entries across 43 versions & 1 rubygems